netwar.settings
Class GlobalSettings

java.lang.Object
  |
  +--netwar.settings.GlobalSettings
All Implemented Interfaces:
java.io.Serializable

public class GlobalSettings
extends java.lang.Object
implements java.io.Serializable

STRUCT style class used for network coordination. Contains game initialization data shared by all players.

Author:
Group N2 - Project Netwar, Daniel Grund
See Also:
Serialized Form

Field Summary
 int boardRadius
          The radius of the game board, in Hexes.
 long randomSeed
          The random seed.
 
Constructor Summary
GlobalSettings(int rad)
          Creates a new instance of GlobalSettings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

boardRadius

public int boardRadius
The radius of the game board, in Hexes.

randomSeed

public long randomSeed
The random seed. By propogating this over the network, all games can use identical 'random' numbers.
Constructor Detail

GlobalSettings

public GlobalSettings(int rad)
Creates a new instance of GlobalSettings