PlayerAbilities.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package pathgame.gameplay;
  2. public class PlayerAbilities {
  3. private final String name;
  4. private final int fasterGrass;
  5. private final int fasterForest;
  6. private final int fasterShallowWater;
  7. private final int fasterDeepWater;
  8. private final int fasterHill;
  9. private final int fasterMountain;
  10. private final int fasterSwamp;
  11. private PlayerAbilities(String name, int fasterGrass, int fasterForest, int fasterShallowWater,
  12. int fasterDeepWater, int fasterHill, int fasterMountain, int fasterSwamp) {
  13. this.name = name;
  14. this.fasterGrass = fasterGrass;
  15. this.fasterForest = fasterForest;
  16. this.fasterShallowWater = fasterShallowWater;
  17. this.fasterDeepWater = fasterDeepWater;
  18. this.fasterHill = fasterHill;
  19. this.fasterMountain = fasterMountain;
  20. this.fasterSwamp = fasterSwamp;
  21. }
  22. public final static PlayerAbilities NORMAL = new PlayerAbilities("Normal", 0, 0, 0, 0, 0, 0, 0);
  23. public final static PlayerAbilities HIKER = new PlayerAbilities("Hiker", 0, 0, 0, 0, 2, 4, 0);
  24. public final static PlayerAbilities HUNTER = new PlayerAbilities("Hunter", 0, 1, 0, 0, 0, 0, 1);
  25. public final static PlayerAbilities SWIMMER = new PlayerAbilities("Swimmer", 0, 0, 3, 0, 0, 0, 0);
  26. public final static PlayerAbilities SAILOR = new PlayerAbilities("Sailor", 0, 0, 0, 1, 0, 0, 0);
  27. public final static PlayerAbilities[] ABILITIES = new PlayerAbilities[]{
  28. NORMAL, HIKER, HUNTER, SWIMMER, SAILOR
  29. };
  30. public int getFasterGrass() {
  31. return fasterGrass;
  32. }
  33. public int getFasterForest() {
  34. return fasterForest;
  35. }
  36. public int getFasterShallowWater() {
  37. return fasterShallowWater;
  38. }
  39. public int getFasterDeepWater() {
  40. return fasterDeepWater;
  41. }
  42. public int getFasterHill() {
  43. return fasterHill;
  44. }
  45. public int getFasterMountain() {
  46. return fasterMountain;
  47. }
  48. public int getFasterSwamp() {
  49. return fasterSwamp;
  50. }
  51. public String getName() {
  52. return name;
  53. }
  54. }