org.gjt.universe
Class ModuleBase

java.lang.Object
  |
  +--org.gjt.universe.DBItem
        |
        +--org.gjt.universe.ModuleBase
All Implemented Interfaces:
Orderable, java.io.Serializable
Direct Known Subclasses:
Module_001, ModuleUndefined

public abstract class ModuleBase
extends DBItem
implements Orderable

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.

See Also:
ModuleDesignBase, ShipDesignBase, StationBase, Serialized Form

Field 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

currentID

private static ModuleID currentID
ID of next Module object made.


ID

private ModuleID ID
ID of this Module object.


design

private ModuleDesignID design
Constructor Detail

ModuleBase

protected ModuleBase(ModuleDesignID in_design)
Constructor - makes ID for Module object


ModuleBase

protected ModuleBase()
Constructor for ModuleUndefined

Method Detail

getID

public ModuleID getID()
Return the ID


getIndex

public Index getIndex()
Return the ID

Specified by:
getIndex in class DBItem

getName

public java.lang.String getName()
Specified by:
getName in class DBItem

getDesign

public ModuleDesignID getDesign()

build

public abstract boolean build()

getOwner

public CivID getOwner()
This method searches the database for the owner of this module.

Overrides:
getOwner in class DBItem

getLocation

public Location getLocation()
This method searches the database for the location of this module.

Overrides:
getLocation in class DBItem

getAvailableOrders

public java.util.Hashtable getAvailableOrders()
Specified by:
getAvailableOrders in interface Orderable

getCurrentOrders

public java.util.Hashtable getCurrentOrders()
Specified by:
getCurrentOrders in interface Orderable


Copyright © 2001 Universe Dev Team All Rights Reserved.