games.strategy.engine.data
Class UnitType
java.lang.Object
games.strategy.engine.data.GameDataComponent
games.strategy.engine.data.DefaultNamed
games.strategy.engine.data.NamedAttachable
games.strategy.engine.data.UnitType
- All Implemented Interfaces:
- Attachable, Named, java.io.Serializable
public class UnitType
- extends NamedAttachable
- implements java.io.Serializable
- Version:
- 1.0
A prototype for units.
- Author:
- Sean Bridges
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
UnitType
public UnitType(java.lang.String name,
GameData data)
create
public java.util.List<Unit> create(int quantity,
PlayerID owner)
create
public java.util.List<Unit> create(int quantity,
PlayerID owner,
boolean isTemp)
create
public Unit create(PlayerID owner)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class DefaultNamed
hashCode
public int hashCode()
- Overrides:
hashCode in class DefaultNamed