civquest
Class Game
java.lang.Object
civquest.Game
- public class Game
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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