Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 

96 rader
2.0 KiB

  1. package structures.basic;
  2. import java.util.List;
  3. /**
  4. * This is a storage structure for the different animations that a
  5. * Unit can perform. A Unit has 6 possible animation states:
  6. * - idle
  7. * - death
  8. * - attack
  9. * - move
  10. * - channel
  11. * - hit
  12. *
  13. * @author Dr. Richard McCreadie
  14. *
  15. */
  16. public class UnitAnimationSet {
  17. List<String> allFrames;
  18. String frameDIR;
  19. UnitAnimation idle;
  20. UnitAnimation death;
  21. UnitAnimation attack;
  22. UnitAnimation move;
  23. UnitAnimation channel;
  24. UnitAnimation hit;
  25. public UnitAnimationSet() {}
  26. public UnitAnimationSet(List<String> allFrames, String frameDIR, UnitAnimation idle, UnitAnimation death, UnitAnimation attack,
  27. UnitAnimation move, UnitAnimation channel, UnitAnimation hit) {
  28. super();
  29. this.allFrames = allFrames;
  30. this.frameDIR = frameDIR;
  31. this.idle = idle;
  32. this.death = death;
  33. this.attack = attack;
  34. this.move = move;
  35. this.channel = channel;
  36. this.hit = hit;
  37. }
  38. public List<String> getAllFrames() {
  39. return allFrames;
  40. }
  41. public void setAllFrames(List<String> allFrames) {
  42. this.allFrames = allFrames;
  43. }
  44. public String getFrameDIR() {
  45. return frameDIR;
  46. }
  47. public void setFrameDIR(String frameDIR) {
  48. this.frameDIR = frameDIR;
  49. }
  50. public UnitAnimation getIdle() {
  51. return idle;
  52. }
  53. public void setIdle(UnitAnimation idle) {
  54. this.idle = idle;
  55. }
  56. public UnitAnimation getDeath() {
  57. return death;
  58. }
  59. public void setDeath(UnitAnimation death) {
  60. this.death = death;
  61. }
  62. public UnitAnimation getAttack() {
  63. return attack;
  64. }
  65. public void setAttack(UnitAnimation attack) {
  66. this.attack = attack;
  67. }
  68. public UnitAnimation getMove() {
  69. return move;
  70. }
  71. public void setMove(UnitAnimation move) {
  72. this.move = move;
  73. }
  74. public UnitAnimation getChannel() {
  75. return channel;
  76. }
  77. public void setChannel(UnitAnimation channel) {
  78. this.channel = channel;
  79. }
  80. public UnitAnimation getHit() {
  81. return hit;
  82. }
  83. public void setHit(UnitAnimation hit) {
  84. this.hit = hit;
  85. }
  86. }