Jump to content

Recommended Posts

Posted (edited)
2 minutes ago, valentin said:

ye  pastebin. Looks ugly the code posted on mxc

Ok next share i'm bored now.

 

PS. the boy on your photo is ugly too but i don't complain >.<

Edited by Kara`
Posted
+public class PvPColor extends PEvent
+{
+	public PvPColor(int r, int g, int b)
+	{
+		values = new Object[3] { r, g, b };
+	}
+	
+	@Override
+	public void getEffect(L2PcInstance player)
+	{
+		player.getAppearance().setNameColor((int) values[0], (int) values[1], (int) values[2]);
+		player.broadcastUserInfo();
+	}
+}

what the...?

Posted
8 hours ago, xxdem said:

+public class PvPColor extends PEvent
+{
+	public PvPColor(int r, int g, int b)
+	{
+		values = new Object[3] { r, g, b };
+	}
+	
+	@Override
+	public void getEffect(L2PcInstance player)
+	{
+		player.getAppearance().setNameColor((int) values[0], (int) values[1], (int) values[2]);
+		player.broadcastUserInfo();
+	}
+}

what the...?

Ελα ενταξει σκασε ειπα δεν χρειαζεται καν extend ενα interface μονο, το εγραφα ενω εκανα δουλεια ταυτοχρονα.

Posted
1 hour ago, Elfocrash said:

[GR] Ρε άσε τις δικαιολογίες και μην κάνεις σαν 10αχρονο. Δεν έχει σημασία πως έγραψες τον κώδικα, σημασία έχει το αποτέλεσμα που παρουσιάζεις και μόνο.

Δικαιολογιες? Τι ειναι εδω πανεπιστημιο και δινω αυριο? Λες και με νοιαζει να απολογηθω στον Σταυρο.

 

Posted

diladi itane diskolo na kaneis declare ena int sto child class, eprepe na dialekseis ton xirotero kai pio periploko tropo gia na to paikseis eksipnos

Posted
23 minutes ago, xxdem said:

diladi itane diskolo na kaneis declare ena int sto child class, eprepe na dialekseis ton xirotero kai pio periploko tropo gia na to paikseis eksipnos

Kai ama argotera theleis na kaneis store title as poume? 

Posted

to base class einai absract kai i getEffects einai abstract, kaneis extend kai ftiaxneis oti container thes pou kanei extend to kai implement tin getEffects

Posted
1 minute ago, Elfocrash said:

Κάνεις ένα string field στο PvpTitle class. Δεν υπάρχει λόγος να κάνεις generalisation στο επίπεδο που το κάνεις για δύο λόγους.

Πρώτον κάνεις violate single responsibility γιατί δίνεις στο values field ιδιότητες που δεν θα έπρεπε να έχει.

Δεύτερον, δεν χρειάζεσαι κάν abstract class, μπορείς να το κάνεις με interface πολύ πιο απλά.

 

abstract class kai interface kamia diafora an den se niazei melontika na kaneis implement panw apo ena

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock