erland.game.tileadventure
Class TileAdventureModelStandalone

java.lang.Object
  extended by erland.game.tileadventure.TileAdventureModelStandalone
All Implemented Interfaces:
TileAdventureModelInterface

public class TileAdventureModelStandalone
extends Object
implements TileAdventureModelInterface


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

TileAdventureModelStandalone

public TileAdventureModelStandalone()
Method Detail

startMoveLeft

public void startMoveLeft()
Description copied from interface: TileAdventureModelInterface
Begin moving left

Specified by:
startMoveLeft in interface TileAdventureModelInterface

startMoveRight

public void startMoveRight()
Description copied from interface: TileAdventureModelInterface
Begin moving right

Specified by:
startMoveRight in interface TileAdventureModelInterface

startMoveUp

public void startMoveUp()
Description copied from interface: TileAdventureModelInterface
Begin moving up

Specified by:
startMoveUp in interface TileAdventureModelInterface

startMoveDown

public void startMoveDown()
Description copied from interface: TileAdventureModelInterface
Begin moving down

Specified by:
startMoveDown in interface TileAdventureModelInterface

stopMoveLeft

public void stopMoveLeft()
Description copied from interface: TileAdventureModelInterface
Stop moveing left

Specified by:
stopMoveLeft in interface TileAdventureModelInterface

stopMoveRight

public void stopMoveRight()
Description copied from interface: TileAdventureModelInterface
Stop moving right

Specified by:
stopMoveRight in interface TileAdventureModelInterface

stopMoveUp

public void stopMoveUp()
Description copied from interface: TileAdventureModelInterface
Stop moving up

Specified by:
stopMoveUp in interface TileAdventureModelInterface

stopMoveDown

public void stopMoveDown()
Description copied from interface: TileAdventureModelInterface
Stop moving down

Specified by:
stopMoveDown in interface TileAdventureModelInterface

jump

public void jump()
Description copied from interface: TileAdventureModelInterface
Jump

Specified by:
jump in interface TileAdventureModelInterface

update

public void update()
Description copied from interface: TileAdventureModelInterface
Update model

Specified by:
update in interface TileAdventureModelInterface

init

public void init(GameEnvironmentInterface environment,
                 IrregularBlockContainerInterface cont)
Description copied from interface: TileAdventureModelInterface
Initialize model

Specified by:
init in interface TileAdventureModelInterface
Parameters:
environment - Game environment object
cont - Block container for the game area

isInitialized

public boolean isInitialized()
Description copied from interface: TileAdventureModelInterface
Check if game has been initialized

Specified by:
isInitialized in interface TileAdventureModelInterface
Returns:
true if game has been initialized

start

public void start()
Description copied from interface: TileAdventureModelInterface
Start the game

Specified by:
start in interface TileAdventureModelInterface

getMap

public MapDrawInterface getMap()
Description copied from interface: TileAdventureModelInterface
Get the active map

Specified by:
getMap in interface TileAdventureModelInterface

isEnd

public boolean isEnd()
Description copied from interface: TileAdventureModelInterface
Check if game has ended

Specified by:
isEnd in interface TileAdventureModelInterface
Returns:
true if game has ended

isGameOver

public boolean isGameOver()
Description copied from interface: TileAdventureModelInterface
Check if it is game over

Specified by:
isGameOver in interface TileAdventureModelInterface
Returns:
true if it is game over

isCompleted

public boolean isCompleted()
Description copied from interface: TileAdventureModelInterface
Check if game has been completed

Specified by:
isCompleted in interface TileAdventureModelInterface
Returns:
true if game has been completed

isStarted

public boolean isStarted()
Description copied from interface: TileAdventureModelInterface
Check if game has been started

Specified by:
isStarted in interface TileAdventureModelInterface
Returns:
true if game has been started

isMultiplayer

public boolean isMultiplayer()
Description copied from interface: TileAdventureModelInterface
Check if this is a multi player game

Specified by:
isMultiplayer in interface TileAdventureModelInterface
Returns:
true if multi player

getInfoString

public String getInfoString()
Description copied from interface: TileAdventureModelInterface
Get an information string from the model

Specified by:
getInfoString in interface TileAdventureModelInterface
Returns:
The information string

setCheatModeParameter

public void setCheatModeParameter(String parameter,
                                  String value)
Description copied from interface: TileAdventureModelInterface
Set a cheat parameter

Specified by:
setCheatModeParameter in interface TileAdventureModelInterface
Parameters:
parameter - Cheat parameter name
value - Cheat parameter value

getNoOfHumanPlayers

public int getNoOfHumanPlayers()
Description copied from interface: TileAdventureModelInterface
Get number of human controlled players

Specified by:
getNoOfHumanPlayers in interface TileAdventureModelInterface
Returns:
Number of human contolled players

getPlayerObject

public GameObject getPlayerObject()
Description copied from interface: TileAdventureModelInterface
Get the player object

Specified by:
getPlayerObject in interface TileAdventureModelInterface


Copyright © 2003-2006 Erland Isaksson. All Rights Reserved.