games.strategy.engine.data
Class PlayerID

java.lang.Object
  extended by games.strategy.engine.data.GameDataComponent
      extended by games.strategy.engine.data.DefaultNamed
          extended by games.strategy.engine.data.NamedAttachable
              extended by games.strategy.engine.data.PlayerID
All Implemented Interfaces:
Attachable, Named, NamedUnitHolder, UnitHolder, java.io.Serializable

public class PlayerID
extends NamedAttachable
implements NamedUnitHolder, java.io.Serializable

Version:
1.0
Author:
Sean Bridges
See Also:
Serialized Form

Field Summary
static PlayerID NULL_PLAYERID
           
 
Fields inherited from interface games.strategy.engine.data.UnitHolder
PLAYER, TERRITORY
 
Constructor Summary
PlayerID(java.lang.String name, boolean optional, GameData data)
          Creates new Player
 
Method Summary
 boolean getOptional()
           
 ProductionFrontier getProductionFrontier()
           
 RepairFrontier getRepairFrontier()
           
 ResourceCollection getResources()
           
 java.lang.String getType()
           
 UnitCollection getUnits()
           
 boolean isNull()
           
 void notifyChanged()
           
 void setProductionFrontier(ProductionFrontier frontier)
           
 void setRepairFrontier(RepairFrontier frontier)
           
 java.lang.String toString()
           
 
Methods inherited from class games.strategy.engine.data.NamedAttachable
addAttachment, getAttachment, getAttachments
 
Methods inherited from class games.strategy.engine.data.DefaultNamed
equals, getName, hashCode
 
Methods inherited from class games.strategy.engine.data.GameDataComponent
getData, readInternal, writeInternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface games.strategy.engine.data.Named
getName
 

Field Detail

NULL_PLAYERID

public static final PlayerID NULL_PLAYERID
Constructor Detail

PlayerID

public PlayerID(java.lang.String name,
                boolean optional,
                GameData data)
Creates new Player

Method Detail

getOptional

public boolean getOptional()

getUnits

public UnitCollection getUnits()
Specified by:
getUnits in interface UnitHolder

getResources

public ResourceCollection getResources()

setProductionFrontier

public void setProductionFrontier(ProductionFrontier frontier)

getProductionFrontier

public ProductionFrontier getProductionFrontier()

setRepairFrontier

public void setRepairFrontier(RepairFrontier frontier)

getRepairFrontier

public RepairFrontier getRepairFrontier()

notifyChanged

public void notifyChanged()
Specified by:
notifyChanged in interface UnitHolder

isNull

public boolean isNull()

toString

public java.lang.String toString()
Overrides:
toString in class DefaultNamed

getType

public java.lang.String getType()
Specified by:
getType in interface UnitHolder