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 our implementation of the game.


Constructor Summary
SInitGame()
           
 
Method Summary
 Torus newTorus(TorusManParameters torusManParameters, LocalMan localMan)
          Creates a new torus and returns in.
 TorusManParameters newTorusManParameters()
          Creates and returns new parameters.
 dk.itu.smds.util.Parameters setParameters(TorusManParameters torusManParameters, jgame.platform.JGEngine eng)
          Sets the parameters of the torus.
 
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 in.

Overrides:
newTorus in class InitGame
Parameters:
localMan - the man object containing information
Returns:
the created torus
See Also:
InitGame.newTorus(dk.itu.smds.torusman.TorusManParameters, dk.itu.smds.torusman.LocalMan)

newTorusManParameters

public TorusManParameters newTorusManParameters()
Creates and returns new 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 torus.

Overrides:
setParameters in class InitGame
Parameters:
torusManParameters - the set parameters
eng - the engine
Returns:
returns the set parameters
See Also:
InitGame.setParameters(dk.itu.smds.torusman.TorusManParameters, jgame.platform.JGEngine)