|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A GameComponent is any object which reacts to the start/end of a game, or whose state can be saved as part of a game.
| Method Summary | |
Command |
getRestoreCommand()
When saving a game, each GameComponent should return a Command that, when executed, restores the GameComponent to its
state when the game was saved
If this component has no persistent state, return null |
void |
setup(boolean gameStarting)
Notify the GameComponent that a game has started/ended |
| Method Detail |
public void setup(boolean gameStarting)
gameStarting - if true, a game is starting. If false, then a game is endingpublic Command getRestoreCommand()
Command that, when executed, restores the GameComponent to its
state when the game was saved
If this component has no persistent state, return null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||