games.strategy.engine.data
Class UnitType

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.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

Constructor Summary
UnitType(java.lang.String name, GameData data)
           
 
Method Summary
 java.util.List<Unit> create(int quantity, PlayerID owner)
           
 java.util.List<Unit> create(int quantity, PlayerID owner, boolean isTemp)
           
 Unit create(PlayerID owner)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 
Methods inherited from class games.strategy.engine.data.NamedAttachable
addAttachment, getAttachment, getAttachments
 
Methods inherited from class games.strategy.engine.data.DefaultNamed
getName, toString
 
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
 

Constructor Detail

UnitType

public UnitType(java.lang.String name,
                GameData data)
Method Detail

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