|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TileAdventureModelInterface
Defines all methods needed for a game model for the game
Method Summary | |
---|---|
String |
getInfoString()
Get an information string from the model |
MapDrawInterface |
getMap()
Get the active map |
int |
getNoOfHumanPlayers()
Get number of human controlled players |
GameObject |
getPlayerObject()
Get the player object |
void |
init(GameEnvironmentInterface environment,
IrregularBlockContainerInterface cont)
Initialize model |
boolean |
isCompleted()
Check if game has been completed |
boolean |
isEnd()
Check if game has ended |
boolean |
isGameOver()
Check if it is game over |
boolean |
isInitialized()
Check if game has been initialized |
boolean |
isMultiplayer()
Check if this is a multi player game |
boolean |
isStarted()
Check if game has been started |
void |
jump()
Jump |
void |
setCheatModeParameter(String parameter,
String value)
Set a cheat parameter |
void |
start()
Start the game |
void |
startMoveDown()
Begin moving down |
void |
startMoveLeft()
Begin moving left |
void |
startMoveRight()
Begin moving right |
void |
startMoveUp()
Begin moving up |
void |
stopMoveDown()
Stop moving down |
void |
stopMoveLeft()
Stop moveing left |
void |
stopMoveRight()
Stop moving right |
void |
stopMoveUp()
Stop moving up |
void |
update()
Update model |
Method Detail |
---|
void startMoveLeft()
void startMoveRight()
void startMoveUp()
void startMoveDown()
void stopMoveLeft()
void stopMoveRight()
void stopMoveUp()
void stopMoveDown()
void jump()
void init(GameEnvironmentInterface environment, IrregularBlockContainerInterface cont)
environment
- Game environment objectcont
- Block container for the game areavoid start()
void update()
MapDrawInterface getMap()
GameObject getPlayerObject()
int getNoOfHumanPlayers()
boolean isEnd()
boolean isGameOver()
boolean isCompleted()
boolean isStarted()
boolean isInitialized()
boolean isMultiplayer()
String getInfoString()
void setCheatModeParameter(String parameter, String value)
parameter
- Cheat parameter namevalue
- Cheat parameter value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |