Package sig.engine
Class AnimatedSprite
- java.lang.Object
-
- sig.engine.Sprite
-
- sig.engine.AnimatedSprite
-
public class AnimatedSprite extends Sprite
-
-
Field Summary
-
Fields inherited from class sig.engine.Sprite
PROFONT, PROFONT_36, SPRITES_FOLDER
-
-
Constructor Summary
Constructors Constructor Description AnimatedSprite(java.lang.String filename, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCanvasHeight()
int
getCanvasWidth()
Rectangle
getFrame(int index)
int
getFrame_count()
-
-
-
Method Detail
-
getFrame
public Rectangle getFrame(int index)
-
getFrame_count
public int getFrame_count()
-
getCanvasHeight
public int getCanvasHeight()
- Overrides:
getCanvasHeight
in classSprite
-
getCanvasWidth
public int getCanvasWidth()
- Overrides:
getCanvasWidth
in classSprite
-
-