Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

EffectAnimation.java 1.2 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package structures.basic;
  2. import java.util.List;
  3. /**
  4. * This class is the base for an effect that can be played on a game
  5. * tile. It has a list of animation frames (animationTextures), and
  6. * a correction object that has information about centering the frames
  7. * on the tile. It has has an fps value that specifies how quickly to
  8. * play the animation.
  9. *
  10. * @author Dr. Richard McCreadie
  11. *
  12. */
  13. public class EffectAnimation {
  14. List<String> animationTextures;
  15. ImageCorrection correction;
  16. int fps;
  17. public EffectAnimation() {}
  18. public EffectAnimation(List<String> animationTextures, ImageCorrection correction, int fps) {
  19. super();
  20. this.animationTextures = animationTextures;
  21. this.correction = correction;
  22. this.fps = fps;
  23. }
  24. public List<String> getAnimationTextures() {
  25. return animationTextures;
  26. }
  27. public void setAnimationTextures(List<String> animationTextures) {
  28. this.animationTextures = animationTextures;
  29. }
  30. public ImageCorrection getCorrection() {
  31. return correction;
  32. }
  33. public void setCorrection(ImageCorrection correction) {
  34. this.correction = correction;
  35. }
  36. public int getFps() {
  37. return fps;
  38. }
  39. public void setFps(int fps) {
  40. this.fps = fps;
  41. }
  42. }