org.gjt.universe
Class ShipStd

java.lang.Object
  |
  +--org.gjt.universe.DBItem
        |
        +--org.gjt.universe.ShipBase
              |
              +--org.gjt.universe.ShipStd
All Implemented Interfaces:
java.io.Serializable

public class ShipStd
extends ShipBase

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.gjt.universe.ShipBase
 
Constructor Summary
private ShipStd()
          Don't allow default constructor
private ShipStd(ShipDesignID DID, CivID AID, java.lang.String in_name)
          Private constructor - called by new Ship()
 
Method Summary
 boolean build()
           
 AttackBase getAttack()
           
 DefenseBase getDefense()
           
 SpeedBase getSpeed()
          Returns the speed of the ship.
static ShipID newShip(ShipDesignID DID, CivID AID)
           
 VectorDisplayReturn specificDisplayDebug()
           
 
Methods inherited from class org.gjt.universe.ShipBase
colonize, destroy, getFleet, getID, getIndex, getName, getOwner, getShipDesign, isColonizable, setFleet, setName
 
Methods inherited from class org.gjt.universe.DBItem
getLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShipStd

private ShipStd(ShipDesignID DID,
                CivID AID,
                java.lang.String in_name)
Private constructor - called by new Ship()


ShipStd

private ShipStd()
Don't allow default constructor

Method Detail

newShip

public static ShipID newShip(ShipDesignID DID,
                             CivID AID)

specificDisplayDebug

public VectorDisplayReturn specificDisplayDebug()
Specified by:
specificDisplayDebug in class DBItem

getAttack

public AttackBase getAttack()
Specified by:
getAttack in class ShipBase

getDefense

public DefenseBase getDefense()
Specified by:
getDefense in class ShipBase

getSpeed

public SpeedBase getSpeed()
Description copied from class: ShipBase
Returns the speed of the ship. This should be a function of the ShipDesign's engine and the damage of the ship.

Specified by:
getSpeed in class ShipBase

build

public boolean build()
Specified by:
build in class ShipBase


Copyright © 2001 Universe Dev Team All Rights Reserved.