|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GameState
| Method Summary | |
|---|---|
java.lang.String |
checkForStateChange()
Returns the name of a state to change to if this state is ready to change to another state, or null otherwise. |
void |
draw(java.awt.Graphics2D g)
Draws to the screen. |
java.lang.String |
getName()
Gets the name of this state. |
void |
loadResources(ResourceManager resourceManager)
Loads any resources for this state. |
void |
start(InputManager inputManager)
Initializes this state and sets up the input manager |
void |
stop()
Performs any actions needed to stop this state. |
void |
update(long elapsedTime)
Updates world, handles input. |
| Method Detail |
|---|
java.lang.String getName()
java.lang.String checkForStateChange()
void loadResources(ResourceManager resourceManager)
void start(InputManager inputManager)
void stop()
void update(long elapsedTime)
void draw(java.awt.Graphics2D g)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||