xxdem Posted March 6, 2016 Share Posted March 6, 2016 A simple but fancy code that can do magic on your server balance and AI, not much to say but you need knowledge to implement it. Link Link to comment Share on other sites More sharing options...
Elfo Posted March 6, 2016 Share Posted March 6, 2016 Pretty basic but good stuff. I remember L2Impulse using something similar for his balance. Link to comment Share on other sites More sharing options...
xxdem Posted March 6, 2016 Author Share Posted March 6, 2016 Pretty basic but good stuff. I remember L2Impulse using something similar for his balance. we both know that you would prefer if else if else if else if design imho its not basic, developers loose their minds when they are asked to "extend" an enum Link to comment Share on other sites More sharing options...
Elfo Posted March 6, 2016 Share Posted March 6, 2016 (edited) we both know that you would prefer if else if else if else if design imho its not basic, developers loose their minds when they are asked to "extend" an enum Nah still pretty basic stuff. PS: It should be noted here that this is a wrongfully name pattern as you are not literally extending anything. One can get confused but bad naming. Edited March 6, 2016 by .Elfocrash Link to comment Share on other sites More sharing options...
xxdem Posted March 6, 2016 Author Share Posted March 6, 2016 Nah still pretty basic stuff. PS: It should be noted here that this is a wrongfully name pattern as you are not literally extending anything. One can get confused but bad naming. Java is not literally object oriented, one can say that java primitives are not literally primitives. And much more, java is virtual by nature. enum or private static final instance? Nothing is literally true in java. But you are right, I extend nothing here, but thats the end result, these enums inherit things I need from each other Link to comment Share on other sites More sharing options...
MeLDevGree Posted May 17, 2016 Share Posted May 17, 2016 Java is not literally object oriented, one can say that java primitives are not literally primitives. And much more, java is virtual by nature. enum or private static final instance? Nothing is literally true in java. But you are right, I extend nothing here, but thats the end result, these enums inherit things I need from each other yOfc you can add the code again ? Link to comment Share on other sites More sharing options...
Recommended Posts