Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6.  
  7. package client;
  8.  
  9. /**
  10. *
  11. * @author Chris
  12. */
  13. public enum SpiritList {
  14. BEGINNER(0),
  15. WARRIOR(100), WARRIOR2(101), WARRIOR3(102),
  16. MAGE(200), MAGE2(201), MAGE3(202),
  17. ARCHER(300), ARCHER2(301), ARCHER3(302),
  18. THIEF(400), THIEF2(401), THIEF3(402),
  19. PIRATE(500), PIRATE1(501), PIRATE2(502);
  20.  
  21. final int spiritid;
  22.  
  23. private SpiritList(int id) {
  24. spiritid = id;
  25. }
  26.  
  27. public int getId() {
  28. return spiritid;
  29. }
  30.  
  31. public static SpiritList getById(int id) {
  32. for (SpiritList l : SpiritList.values()) {
  33. if (l.getId() == id) {
  34. return l;
  35. }
  36. }
  37. return null;
  38. }
  39.  
  40. public boolean isA(SpiritList basejob) {
  41. return getId() >= basejob.getId() && getId() / 100 == basejob.getId() / 100;
  42. }
  43. /*List of rewards from each class
  44. * WARRIOR- % HP. Starts at 3, ends at 9.
  45. * MAGE- %MP. Starts at 3, ends at 9.
  46. * ARCHER- %HP AND %MP - 1%, 2%, and 3% HP, .5%, 1%, and 1.5% MP
  47. * THIEF- %MP AND %HP - 1%, 2%, and 3% MP, .5%, 1%, and 1.5% HP
  48. */
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement