|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MHRenderable
Everything in the game that appears on screen and manages its own data must implement this interface. It enforces the requirement that every visible thing in the game universe must have at least two capabilities:
It is important to note that the MHActor class implements this interface. Therefore, every class derived from MHActor automatically inherits the abilities set forth in this interface.
Method Summary | |
---|---|
void |
advance()
Tells an object to update its data. |
void |
render(java.awt.Graphics2D g)
Tells an object to draw itself onto the sent Graphics object. |
Method Detail |
---|
void advance()
void render(java.awt.Graphics2D g)
g
- The Graphics object on which this object is to draw itself.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |