org.gjt.universe
Class ModuleDesignBase

java.lang.Object
  |
  +--org.gjt.universe.DBItem
        |
        +--org.gjt.universe.ModuleDesignBase
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ModuleDesign_001, ModuleDesignUndefined

public abstract class ModuleDesignBase
extends DBItem

The ModuleDesignBase 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:
ModuleBase, ShipDesignBase, StationBase, Serialized Form

Field Summary
private static ModuleDesignID currentID
          ID of next Module object made.
private  ModuleDesignID ID
          ID of this Module object.
private  java.lang.String name
           
 
Constructor Summary
ModuleDesignBase()
          Constructor for ModuleUndefined
ModuleDesignBase(java.lang.String in_name)
          Constructor - makes ID for Module object
 
Method Summary
 ModuleDesignID getID()
          Return the ID
 Index getIndex()
          See getID() in the subclasses for a typed version.
 java.lang.String getName()
           
abstract  java.lang.String[] getOrderTypes()
          This method returns the orders that this module can do.
static void resetModuleDesignID()
           
 
Methods inherited from class org.gjt.universe.DBItem
getLocation, getOwner, specificDisplayDebug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentID

private static ModuleDesignID currentID
ID of next Module object made.


ID

private ModuleDesignID ID
ID of this Module object.


name

private java.lang.String name
Constructor Detail

ModuleDesignBase

public ModuleDesignBase(java.lang.String in_name)
Constructor - makes ID for Module object


ModuleDesignBase

public ModuleDesignBase()
Constructor for ModuleUndefined

Method Detail

getID

public ModuleDesignID getID()
Return the ID


getIndex

public Index getIndex()
Description copied from class: DBItem
See getID() in the subclasses for a typed version.

Specified by:
getIndex in class DBItem

resetModuleDesignID

public static void resetModuleDesignID()

getName

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

getOrderTypes

public abstract java.lang.String[] getOrderTypes()
This method returns the orders that this module can do. All orders are represented by strings and must be parsed and handled by the calling GUI.



Copyright © 2001 Universe Dev Team All Rights Reserved.