civquest
Class Game

java.lang.Object
  extended bycivquest.Game

public class Game
extends java.lang.Object


Method Summary
 void addNation(Nation nation)
           
 void addPlayer(Player player)
           
 void assignPlayerToNation(Player player, Nation nation)
           
static void constructGame(Registry registry)
           
static void destroyGame()
           
 Nation getActiveNation()
           
static Game getGame()
           
 int getInternalTimePerTurn()
          Returns the (internal)time one turn lasts.
static MapData getMapData()
           
 Nation getNation(int id)
           
 java.util.Iterator getNationIterator()
           
 Player getPlayer(int id)
           
 Registry getRegistry()
          Access the Registry object for this game, to look up values in ruleset files.
 ScienceFactory getScienceFactory()
           
 int getTurn()
           
 UnitModel[] getUnitModels()
           
 void loadAllRulesets()
           
 void nextNation()
           
 void setActiveNation(int id)
           
static void setMapData(MapData nmapdata)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

constructGame

public static void constructGame(Registry registry)

destroyGame

public static void destroyGame()

getGame

public static Game getGame()

setMapData

public static void setMapData(MapData nmapdata)

getMapData

public static MapData getMapData()

loadAllRulesets

public void loadAllRulesets()

getUnitModels

public UnitModel[] getUnitModels()

addPlayer

public void addPlayer(Player player)

getPlayer

public Player getPlayer(int id)

addNation

public void addNation(Nation nation)

getNation

public Nation getNation(int id)

getNationIterator

public java.util.Iterator getNationIterator()

assignPlayerToNation

public void assignPlayerToNation(Player player,
                                 Nation nation)

getScienceFactory

public ScienceFactory getScienceFactory()

getRegistry

public Registry getRegistry()
Access the Registry object for this game, to look up values in ruleset files.


nextNation

public void nextNation()

setActiveNation

public void setActiveNation(int id)

getActiveNation

public Nation getActiveNation()

getTurn

public int getTurn()

getInternalTimePerTurn

public int getInternalTimePerTurn()
Returns the (internal)time one turn lasts. This is the time used for things like speed/distance-calculation (for example for unit-movement). Do not confuse it with the "real" time a turn lasts (for example 2 years).

Returns:
internal time per turn as described