|
|||||||||||
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.ModuleBase
The ModuleBase class represents objects used to "construct" ships, and stations. These would include ship components and station components (buildings). See the Module Overview for more information.
ModuleDesignBase
,
ShipDesignBase
,
StationBase
,
Serialized FormField Summary | |
private static ModuleID |
currentID
ID of next Module object made. |
private ModuleDesignID |
design
|
private ModuleID |
ID
ID of this Module object. |
Constructor Summary | |
protected |
ModuleBase()
Constructor for ModuleUndefined |
protected |
ModuleBase(ModuleDesignID in_design)
Constructor - makes ID for Module object |
Method Summary | |
abstract boolean |
build()
|
java.util.Hashtable |
getAvailableOrders()
|
java.util.Hashtable |
getCurrentOrders()
|
ModuleDesignID |
getDesign()
|
ModuleID |
getID()
Return the ID |
Index |
getIndex()
Return the ID |
Location |
getLocation()
This method searches the database for the location of this module. |
java.lang.String |
getName()
|
CivID |
getOwner()
This method searches the database for the owner of this module. |
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 ModuleID currentID
private ModuleID ID
private ModuleDesignID design
Constructor Detail |
protected ModuleBase(ModuleDesignID in_design)
protected ModuleBase()
Method Detail |
public ModuleID getID()
public Index getIndex()
getIndex
in class DBItem
public java.lang.String getName()
getName
in class DBItem
public ModuleDesignID getDesign()
public abstract boolean build()
public CivID getOwner()
getOwner
in class DBItem
public Location getLocation()
getLocation
in class DBItem
public java.util.Hashtable getAvailableOrders()
getAvailableOrders
in interface Orderable
public java.util.Hashtable getCurrentOrders()
getCurrentOrders
in interface Orderable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |