Package sig.engine
Class Sprite
- java.lang.Object
-
- sig.engine.Sprite
-
- Direct Known Subclasses:
AnimatedSprite
public class Sprite extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static Sprite
PROFONT
static Sprite
PROFONT_36
static java.io.File
SPRITES_FOLDER
-
Constructor Summary
Constructors Constructor Description Sprite(java.lang.String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCanvasHeight()
int
getCanvasWidth()
int
getHeight()
java.awt.image.BufferedImage
getImg()
int
getWidth()
void
setHeight(int height)
void
setImg(java.awt.image.BufferedImage img)
void
setWidth(int width)
-
-
-
Method Detail
-
getImg
public java.awt.image.BufferedImage getImg()
-
setImg
public void setImg(java.awt.image.BufferedImage img)
-
getHeight
public int getHeight()
-
getCanvasHeight
public int getCanvasHeight()
-
setHeight
public void setHeight(int height)
-
getWidth
public int getWidth()
-
getCanvasWidth
public int getCanvasWidth()
-
setWidth
public void setWidth(int width)
-
-