dk.itu.smds.torusman
Class SInitGame

java.lang.Object
  extended by dk.itu.smds.torusman.InitGame
      extended by dk.itu.smds.torusman.SInitGame

public class SInitGame
extends InitGame

The class SInitGame that sets up the game to use our implemenetation.


Constructor Summary
SInitGame()
           
 
Method Summary
 Torus newTorus(TorusManParameters torusManParameters, LocalMan localMan)
          Creates a new torus and returns it with the parameters.
 TorusManParameters newTorusManParameters()
          Creates and returns a new set of parameters.
 dk.itu.smds.util.Parameters setParameters(TorusManParameters torusManParameters, jgame.platform.JGEngine eng)
          Sets the parameters of the game
 
Methods inherited from class dk.itu.smds.torusman.InitGame
getInitGame
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SInitGame

public SInitGame()
Method Detail

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 parameters
localMan - 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 parameters
eng - the engine
Returns:
the game parameters
See Also:
InitGame.setParameters(dk.itu.smds.torusman.TorusManParameters, jgame.platform.JGEngine)