java.lang.Object
buildengine.engine.stage.scene.actor.ActorComponent
buildengine.engine.graphics.animation.Sprite

public class Sprite extends ActorComponent
Sprite object containing drawing information for an actor.
  • Field Details

    • DEFAULT_FRAME_INTERVAL

      public static final long DEFAULT_FRAME_INTERVAL
      See Also:
  • Constructor Details

    • Sprite

      public Sprite()
    • Sprite

      public Sprite(BufferedImage... frames)
    • Sprite

      public Sprite(Animation animation)
    • Sprite

      public Sprite(Animation animation, float width, float height)
  • Method Details

    • getAnimation

      public Animation getAnimation()
    • setAnimation

      public void setAnimation(Animation animation)
    • getWidth

      public float getWidth()
    • setWidth

      public void setWidth(float width)
    • getHeight

      public float getHeight()
    • setHeight

      public void setHeight(float height)
    • getSize

      public Vector2f getSize()
    • getConfiguration

      public Configuration getConfiguration()