SUPER_ATTACK_VIAL2(new int[] { 1, 1 }, Potion.SUPER_ATTACK_FLASK),
SUPER_ATTACK_FLASK(new int[] { 2, 2 }, Potion.SUPER_ATTACK_VIAL);
|
I;m trying to make an enum, using the enum itself as a field.
But get setting a variation match between two objects, it won't work because you can't load the object before its defined:
Code:SUPER_ATTACK_VIAL(new int[] { 1, 1 }, Potion.SUPER_ATTACK_FLASK){ //Potion.SUPER_ATTACK_FLASK is error, because it is not defined yet... }, SUPER_ATTACK_FLASK(new int[] { 2, 2 }, Potion.SUPER_ATTACK_VIAL){ },
SUPER_ATTACK_VIAL2(new int[] { 1, 1 }, Potion.SUPER_ATTACK_FLASK),
SUPER_ATTACK_FLASK(new int[] { 2, 2 }, Potion.SUPER_ATTACK_VIAL);
compare and contrast? lmao what. That guy doesn't know what he's talking about
Enums do work with brackets... I have brackets because i removed some code to simplify this thread.
Solved anyway, there is no way to do the method this way, instead you have to define it in another return field.
You, sir, are an arrogant asshole. First you post in the help section, then you mock on someone who tried to help you. When you post for help, you should be humble and grateful that someone actually tried, regardless of their knowledge or how much it actually helped. I would never even consider giving you a solution if your replies were like this to the previous people. So please keep that in mind the next time you reply on your help thread. In fact, in general, don't mock people, generates unnecessary negative energy.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |