games.strategy.engine.data
Class PlayerID
java.lang.Object
games.strategy.engine.data.GameDataComponent
games.strategy.engine.data.DefaultNamed
games.strategy.engine.data.NamedAttachable
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
|
Constructor Summary |
PlayerID(java.lang.String name,
boolean optional,
GameData data)
Creates new Player |
| 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 |
NULL_PLAYERID
public static final PlayerID NULL_PLAYERID
PlayerID
public PlayerID(java.lang.String name,
boolean optional,
GameData data)
- Creates new Player
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