game.government
Class Civilizations

java.lang.Object
  |
  +--game.government.Civilizations

public class Civilizations
extends java.lang.Object

The static part of Civilization.java got too big, si\o it is now held here. This class is entirely static and contains all the static data and methods relating to the Civilization class.


Constructor Summary
Civilizations()
           
 
Method Summary
static void add(Civilization value)
          Add a new civilization.
static void assignColors()
          Assign colours, after the player has picked one.
static void carryOutOrders()
          Carry out orders.
static boolean gameEnded()
          Check end of game.
static Civilization get(java.lang.String civName)
          Get a civilization given its name.
static void issueOrders()
          Issue orders for all civilizations.
static java.util.Iterator iterator()
          Iterator over all the civilizations.
static void listBySquares(TaskForceList commandList)
          Crete UnitsBySquare lists.
static void newGame()
          Empty the static list for a new game.
static java.lang.Object select()
          Select a civilization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Civilizations

public Civilizations()
Method Detail

iterator

public static java.util.Iterator iterator()
Iterator over all the civilizations.

Returns:
an iterator over all the cvilizations.

get

public static Civilization get(java.lang.String civName)
Get a civilization given its name.

Returns:
the cvilization matching the name, null if none fits.

issueOrders

public static void issueOrders()
Issue orders for all civilizations.


carryOutOrders

public static void carryOutOrders()
Carry out orders.


gameEnded

public static boolean gameEnded()
Check end of game.

Returns:
true if game ended.

listBySquares

public static void listBySquares(TaskForceList commandList)
Crete UnitsBySquare lists.

Parameters:
commandList - the list to add all the task forces to.

select

public static java.lang.Object select()
Select a civilization.


add

public static void add(Civilization value)
Add a new civilization.


newGame

public static void newGame()
Empty the static list for a new game.


assignColors

public static void assignColors()
Assign colours, after the player has picked one.