You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

96 lines
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. }