|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.universe.DBItem | +--org.gjt.universe.StationBase
Field Summary | |
private static StationID |
currentID
|
private StationID |
ID
|
private VectorModuleID |
modules
|
private java.lang.String |
name
|
private CivID |
owner
|
Constructor Summary | |
protected |
StationBase()
Default constructor for StationUndefined object. |
protected |
StationBase(CivID civID,
java.lang.String in_name)
Standard constructor for this base object. |
Method Summary | |
void |
addModule(ModuleID MID)
Adds a module to the list of modules for this station. |
protected void |
announceCreation()
This method announces, via a notification posted on the default notification center that the instance exists. |
void |
destroyModule(ModuleID MID)
This method removes the module with the given ID from the station. |
abstract AttackBase |
getAttack()
Return the attack characteristics of this station. |
abstract DefenseBase |
getDefense()
Return the defense characteristics of this station. |
VectorFleetID |
getDockedFleets()
Returns the fleets that are docked at this station. |
StationID |
getID()
Returns the Station's ID. |
static StationID |
getID(java.lang.String in_name)
Returns ID of station with the given name. |
Index |
getIndex()
See getID() in the subclasses for a typed version. |
abstract Location |
getLocation()
Returns the location of this station. |
VectorModuleID |
getModules()
Get the list of modules at this station. |
java.lang.String |
getName()
Returns the name of the station. |
CivID |
getOwner()
Returns the ID of the owner of the station. |
abstract void |
getSpecificTableInfo(CivID civID,
DisplayReturn DR)
This function allows additional values to be presented in the station table. |
void |
setName(java.lang.String new_name)
Sets the name of the station that should be shown in the UI. |
void |
setOwner(CivID newOwner)
Sets the owner of the station. |
abstract VectorDisplayReturn |
specificDisplay()
Specific display information about this object. |
Methods inherited from class org.gjt.universe.DBItem |
specificDisplayDebug |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static StationID currentID
private StationID ID
private java.lang.String name
private CivID owner
private VectorModuleID modules
Constructor Detail |
protected StationBase(CivID civID, java.lang.String in_name)
civID
- The ID of the civ who will own the station.in_name
- Name of station.protected StationBase()
Method Detail |
protected void announceCreation()
public final StationID getID()
public final Index getIndex()
DBItem
getIndex
in class DBItem
public static StationID getID(java.lang.String in_name)
in_name
- Name of station to get ID for.
public final java.lang.String getName()
getName
in class DBItem
public void setName(java.lang.String new_name)
public final CivID getOwner()
getOwner
in class DBItem
public final void setOwner(CivID newOwner)
newOwner
- The new owner of this station.public final void addModule(ModuleID MID)
MID
- New module to add to the station.public final void destroyModule(ModuleID MID)
MID
- The unique ID of the module to be removed from the station.public final VectorModuleID getModules()
public abstract Location getLocation()
getLocation
in class DBItem
public final VectorFleetID getDockedFleets()
public abstract AttackBase getAttack()
public abstract DefenseBase getDefense()
public abstract VectorDisplayReturn specificDisplay()
public abstract void getSpecificTableInfo(CivID civID, DisplayReturn DR)
DR
- DisplayReturn to modifycivID
- Civ who is "viewing" this station.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |