|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecterland.game.tileadventure.TileAdventureModelStandalone
public class TileAdventureModelStandalone
| Constructor Summary | |
|---|---|
TileAdventureModelStandalone()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TileAdventureModelStandalone()
| Method Detail |
|---|
public void startMoveLeft()
TileAdventureModelInterface
startMoveLeft in interface TileAdventureModelInterfacepublic void startMoveRight()
TileAdventureModelInterface
startMoveRight in interface TileAdventureModelInterfacepublic void startMoveUp()
TileAdventureModelInterface
startMoveUp in interface TileAdventureModelInterfacepublic void startMoveDown()
TileAdventureModelInterface
startMoveDown in interface TileAdventureModelInterfacepublic void stopMoveLeft()
TileAdventureModelInterface
stopMoveLeft in interface TileAdventureModelInterfacepublic void stopMoveRight()
TileAdventureModelInterface
stopMoveRight in interface TileAdventureModelInterfacepublic void stopMoveUp()
TileAdventureModelInterface
stopMoveUp in interface TileAdventureModelInterfacepublic void stopMoveDown()
TileAdventureModelInterface
stopMoveDown in interface TileAdventureModelInterfacepublic void jump()
TileAdventureModelInterface
jump in interface TileAdventureModelInterfacepublic void update()
TileAdventureModelInterface
update in interface TileAdventureModelInterface
public void init(GameEnvironmentInterface environment,
IrregularBlockContainerInterface cont)
TileAdventureModelInterface
init in interface TileAdventureModelInterfaceenvironment - Game environment objectcont - Block container for the game areapublic boolean isInitialized()
TileAdventureModelInterface
isInitialized in interface TileAdventureModelInterfacepublic void start()
TileAdventureModelInterface
start in interface TileAdventureModelInterfacepublic MapDrawInterface getMap()
TileAdventureModelInterface
getMap in interface TileAdventureModelInterfacepublic boolean isEnd()
TileAdventureModelInterface
isEnd in interface TileAdventureModelInterfacepublic boolean isGameOver()
TileAdventureModelInterface
isGameOver in interface TileAdventureModelInterfacepublic boolean isCompleted()
TileAdventureModelInterface
isCompleted in interface TileAdventureModelInterfacepublic boolean isStarted()
TileAdventureModelInterface
isStarted in interface TileAdventureModelInterfacepublic boolean isMultiplayer()
TileAdventureModelInterface
isMultiplayer in interface TileAdventureModelInterfacepublic String getInfoString()
TileAdventureModelInterface
getInfoString in interface TileAdventureModelInterface
public void setCheatModeParameter(String parameter,
String value)
TileAdventureModelInterface
setCheatModeParameter in interface TileAdventureModelInterfaceparameter - Cheat parameter namevalue - Cheat parameter valuepublic int getNoOfHumanPlayers()
TileAdventureModelInterface
getNoOfHumanPlayers in interface TileAdventureModelInterfacepublic GameObject getPlayerObject()
TileAdventureModelInterface
getPlayerObject in interface TileAdventureModelInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||