Class AnimatedEntity

    • Field Detail

      • animation

        protected org.newdawn.slick.Animation animation
        The animation that is currently being used
      • animations

        protected java.util.ArrayList<org.newdawn.slick.Animation> animations
        All of the animations that available to use
    • Constructor Detail

      • AnimatedEntity

        public AnimatedEntity​(java.lang.String id)
      • AnimatedEntity

        public AnimatedEntity​(java.lang.String id,
                              SpriteSheet sheet)
    • Method Detail

      • setAnimations

        public abstract void setAnimations()
        Sets the entity's animations
        See Also:
        animations
      • switchAnimation

        protected void switchAnimation​(int i)
        Changes animation
        Parameters:
        i - The index of the animation to switch to in animations