dk.itu.smds.torusman
Class SInitGame
java.lang.Object
dk.itu.smds.torusman.InitGame
dk.itu.smds.torusman.SInitGame
public class SInitGame
- extends InitGame
The class SInitGame that sets up the game to use our implemenetation.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SInitGame
public SInitGame()
newTorus
public Torus newTorus(TorusManParameters torusManParameters,
LocalMan localMan)
- Creates a new torus and returns it with the parameters.
- Overrides:
newTorus
in class InitGame
- Parameters:
torusManParameters
- the parameterslocalMan
- the man info
- Returns:
- the newly created torus
- See Also:
InitGame.newTorus(dk.itu.smds.torusman.TorusManParameters, dk.itu.smds.torusman.LocalMan)
newTorusManParameters
public TorusManParameters newTorusManParameters()
- Creates and returns a new set of parameters.
- Overrides:
newTorusManParameters
in class InitGame
- Returns:
- the new parameters
- See Also:
InitGame.newTorusManParameters()
setParameters
public dk.itu.smds.util.Parameters setParameters(TorusManParameters torusManParameters,
jgame.platform.JGEngine eng)
- Sets the parameters of the game
- Overrides:
setParameters
in class InitGame
- Parameters:
torusManParameters
- the parameterseng
- the engine
- Returns:
- the game parameters
- See Also:
InitGame.setParameters(dk.itu.smds.torusman.TorusManParameters, jgame.platform.JGEngine)