|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object erland.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 TileAdventureModelInterface
public void startMoveRight()
TileAdventureModelInterface
startMoveRight
in interface TileAdventureModelInterface
public void startMoveUp()
TileAdventureModelInterface
startMoveUp
in interface TileAdventureModelInterface
public void startMoveDown()
TileAdventureModelInterface
startMoveDown
in interface TileAdventureModelInterface
public void stopMoveLeft()
TileAdventureModelInterface
stopMoveLeft
in interface TileAdventureModelInterface
public void stopMoveRight()
TileAdventureModelInterface
stopMoveRight
in interface TileAdventureModelInterface
public void stopMoveUp()
TileAdventureModelInterface
stopMoveUp
in interface TileAdventureModelInterface
public void stopMoveDown()
TileAdventureModelInterface
stopMoveDown
in interface TileAdventureModelInterface
public void jump()
TileAdventureModelInterface
jump
in interface TileAdventureModelInterface
public void update()
TileAdventureModelInterface
update
in interface TileAdventureModelInterface
public void init(GameEnvironmentInterface environment, IrregularBlockContainerInterface cont)
TileAdventureModelInterface
init
in interface TileAdventureModelInterface
environment
- Game environment objectcont
- Block container for the game areapublic boolean isInitialized()
TileAdventureModelInterface
isInitialized
in interface TileAdventureModelInterface
public void start()
TileAdventureModelInterface
start
in interface TileAdventureModelInterface
public MapDrawInterface getMap()
TileAdventureModelInterface
getMap
in interface TileAdventureModelInterface
public boolean isEnd()
TileAdventureModelInterface
isEnd
in interface TileAdventureModelInterface
public boolean isGameOver()
TileAdventureModelInterface
isGameOver
in interface TileAdventureModelInterface
public boolean isCompleted()
TileAdventureModelInterface
isCompleted
in interface TileAdventureModelInterface
public boolean isStarted()
TileAdventureModelInterface
isStarted
in interface TileAdventureModelInterface
public boolean isMultiplayer()
TileAdventureModelInterface
isMultiplayer
in interface TileAdventureModelInterface
public String getInfoString()
TileAdventureModelInterface
getInfoString
in interface TileAdventureModelInterface
public void setCheatModeParameter(String parameter, String value)
TileAdventureModelInterface
setCheatModeParameter
in interface TileAdventureModelInterface
parameter
- Cheat parameter namevalue
- Cheat parameter valuepublic int getNoOfHumanPlayers()
TileAdventureModelInterface
getNoOfHumanPlayers
in interface TileAdventureModelInterface
public GameObject getPlayerObject()
TileAdventureModelInterface
getPlayerObject
in interface TileAdventureModelInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |