|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Sprite
The interface encapsulates the definition of functionality for a Sprite, which is an entity that can be drawn in a game world and has its own behaviours.
Method Summary | |
---|---|
void |
draw(java.awt.Graphics2D g)
Takes the passed Graphics2D object and specifies how this sprite should be drawn on it. |
void |
move()
Specify what should happen at each frame. |
Method Detail |
---|
void draw(java.awt.Graphics2D g)
void move()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |