Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

MiniCard.java 1.4 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. package structures.basic;
  2. /**
  3. * A mini-card is a visualisation of the card in a small square form factor
  4. * in the player's hand. It has a series of components. cardTextures are the
  5. * 'backing' image behind the sprite animation. animationFrames are the frames
  6. * if the unit/spell animation. fps is the speed at which to play the unit/spell
  7. * animation. index is the frame index in animationFrames when wanting a 'still'
  8. * version (non-highlighted).
  9. *
  10. *
  11. * @author Dr. Richard McCreadie
  12. *
  13. */
  14. public class MiniCard {
  15. String[] cardTextures;
  16. String[] animationFrames;
  17. int fps;
  18. int index;
  19. public MiniCard() {}
  20. public MiniCard(String[] cardTextures, String[] animationFrames, int fps, int index) {
  21. super();
  22. this.cardTextures = cardTextures;
  23. this.animationFrames = animationFrames;
  24. this.fps = fps;
  25. this.index = index;
  26. }
  27. public String[] getCardTextures() {
  28. return cardTextures;
  29. }
  30. public void setCardTextures(String[] cardTextures) {
  31. this.cardTextures = cardTextures;
  32. }
  33. public String[] getAnimationFrames() {
  34. return animationFrames;
  35. }
  36. public void setAnimationFrames(String[] animationFrames) {
  37. this.animationFrames = animationFrames;
  38. }
  39. public int getFps() {
  40. return fps;
  41. }
  42. public void setFps(int fps) {
  43. this.fps = fps;
  44. }
  45. public int getIndex() {
  46. return index;
  47. }
  48. public void setIndex(int index) {
  49. this.index = index;
  50. }
  51. }