org.gjt.universe.scheme001
Class ShipDesign_001

java.lang.Object
  |
  +--org.gjt.universe.DBItem
        |
        +--org.gjt.universe.ShipDesignBase
              |
              +--org.gjt.universe.scheme001.ShipDesign_001
All Implemented Interfaces:
java.io.Serializable

public class ShipDesign_001
extends ShipDesignBase

See Also:
Serialized Form

Field Summary
private  ModuleDesignID armor
           
private  java.lang.String armorTemp
           
private  ModuleDesignID attack
           
private  java.lang.String attackTemp
           
private  CostID buildCost
           
private  ModuleDesignID colony
           
private  java.lang.String colonyTemp
           
private  ModuleDesignID computer
           
private  java.lang.String computerTemp
           
private  ModuleDesignID drive
           
private  java.lang.String driveTemp
           
private  ModuleDesignID fuel
           
private  java.lang.String fuelTemp
           
private  ModuleDesignID power
           
private  java.lang.String powerTemp
           
private  ModuleDesignID scanner
           
private  java.lang.String scannerTemp
           
private  ModuleDesignID shield
           
private  java.lang.String shieldTemp
           
private  ModuleDesignID storage
           
private  java.lang.String storageTemp
           
 
Fields inherited from class org.gjt.universe.ShipDesignBase
 
Constructor Summary
private ShipDesign_001(CivID AID, java.lang.String name, ModuleDesignID shield, ModuleDesignID attack, ModuleDesignID armor, ModuleDesignID drive, ModuleDesignID fuel, ModuleDesignID scanner, ModuleDesignID power, ModuleDesignID computer, ModuleDesignID storage, ModuleDesignID colony)
           
(package private) ShipDesign_001(java.lang.String name, java.lang.String shieldTemp, java.lang.String attackTemp, java.lang.String armorTemp, java.lang.String driveTemp, java.lang.String fuelTemp, java.lang.String scannerTemp, java.lang.String powerTemp, java.lang.String computerTemp, java.lang.String storageTemp, java.lang.String colonyTemp)
           
 
Method Summary
 boolean colonize(PlanetID PID)
           
 ModuleDesignID getArmorEID()
           
(package private)  java.lang.String getArmorTemp()
          This method updates the object during the second pass of the Theme file parsing.
 AttackBase getAttack()
           
 ModuleDesignID getAttackEID()
           
(package private)  java.lang.String getAttackTemp()
          This method updates the object during the second pass of the Theme file parsing.
 CostID getBuildCost()
           
 CloakingBase getCloaking()
           
 ModuleDesignID getColonyEID()
           
(package private)  java.lang.String getColonyTemp()
          This method updates the object during the second pass of the Theme file parsing.
 ModuleDesignID getComputerEID()
           
(package private)  java.lang.String getComputerTemp()
          This method updates the object during the second pass of the Theme file parsing.
 DefenseBase getDefense()
           
 ModuleDesignID getDriveEID()
           
(package private)  java.lang.String getDriveTemp()
          This method updates the object during the second pass of the Theme file parsing.
(package private)  float getEngineeringCost()
           
private  float getEngineeringCostDifference(ShipDesignID HID)
           
(package private)  float getExtraPower()
           
 ModuleDesignID getFuelEID()
           
(package private)  java.lang.String getFuelTemp()
          This method updates the object during the second pass of the Theme file parsing.
 float getPopulationBuildCost()
           
 ModuleDesignID getPowerEID()
           
(package private)  java.lang.String getPowerTemp()
          This method updates the object during the second pass of the Theme file parsing.
 float getPowerUsage()
           
 ModuleDesignID getScannerEID()
           
(package private)  java.lang.String getScannerTemp()
          This method updates the object during the second pass of the Theme file parsing.
 ScanningBase getScanning()
           
 ModuleDesignID getShieldEID()
           
(package private)  java.lang.String getShieldTemp()
          This method updates the object during the second pass of the Theme file parsing.
 SpeedBase getSpeed()
           
 ModuleDesignID getStorageEID()
           
(package private)  java.lang.String getStorageTemp()
          This method updates the object during the second pass of the Theme file parsing.
 boolean isColonizable()
           
(package private) static ShipDesignID newShipDesign(CivID AID, java.lang.String name, ModuleDesignID shield, ModuleDesignID attack, ModuleDesignID armor, ModuleDesignID drive, ModuleDesignID fuel, ModuleDesignID scanner, ModuleDesignID power, ModuleDesignID computer, ModuleDesignID storage, ModuleDesignID colony)
           
(package private) static ShipDesignID newShipDesign(java.lang.String str)
           
 VectorDisplayReturn specificDisplayDebug()
           
(package private)  void updateLinks(ModuleDesignID shield, ModuleDesignID attack, ModuleDesignID armor, ModuleDesignID drive, ModuleDesignID fuel, ModuleDesignID scanner, ModuleDesignID power, ModuleDesignID computer, ModuleDesignID storage, ModuleDesignID colony)
          This method updates the object during the second pass of the Theme file parsing.
 
Methods inherited from class org.gjt.universe.ShipDesignBase
getID, getIndex, getName, getOwner, resetShipDesignID, 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
 

Field Detail

shield

private ModuleDesignID shield

attack

private ModuleDesignID attack

armor

private ModuleDesignID armor

drive

private ModuleDesignID drive

fuel

private ModuleDesignID fuel

scanner

private ModuleDesignID scanner

power

private ModuleDesignID power

computer

private ModuleDesignID computer

storage

private ModuleDesignID storage

colony

private ModuleDesignID colony

buildCost

private CostID buildCost

shieldTemp

private java.lang.String shieldTemp

attackTemp

private java.lang.String attackTemp

armorTemp

private java.lang.String armorTemp

driveTemp

private java.lang.String driveTemp

fuelTemp

private java.lang.String fuelTemp

scannerTemp

private java.lang.String scannerTemp

powerTemp

private java.lang.String powerTemp

computerTemp

private java.lang.String computerTemp

storageTemp

private java.lang.String storageTemp

colonyTemp

private java.lang.String colonyTemp
Constructor Detail

ShipDesign_001

ShipDesign_001(java.lang.String name,
               java.lang.String shieldTemp,
               java.lang.String attackTemp,
               java.lang.String armorTemp,
               java.lang.String driveTemp,
               java.lang.String fuelTemp,
               java.lang.String scannerTemp,
               java.lang.String powerTemp,
               java.lang.String computerTemp,
               java.lang.String storageTemp,
               java.lang.String colonyTemp)

ShipDesign_001

private ShipDesign_001(CivID AID,
                       java.lang.String name,
                       ModuleDesignID shield,
                       ModuleDesignID attack,
                       ModuleDesignID armor,
                       ModuleDesignID drive,
                       ModuleDesignID fuel,
                       ModuleDesignID scanner,
                       ModuleDesignID power,
                       ModuleDesignID computer,
                       ModuleDesignID storage,
                       ModuleDesignID colony)
Method Detail

newShipDesign

static ShipDesignID newShipDesign(java.lang.String str)

getShieldTemp

java.lang.String getShieldTemp()
This method updates the object during the second pass of the Theme file parsing. This method should only be called by the ReadThemeFile class.

See Also:
ReadThemeFile

getAttackTemp

java.lang.String getAttackTemp()
This method updates the object during the second pass of the Theme file parsing. This method should only be called by the ReadThemeFile class.

See Also:
ReadThemeFile

getArmorTemp

java.lang.String getArmorTemp()
This method updates the object during the second pass of the Theme file parsing. This method should only be called by the ReadThemeFile class.

See Also:
ReadThemeFile

getDriveTemp

java.lang.String getDriveTemp()
This method updates the object during the second pass of the Theme file parsing. This method should only be called by the ReadThemeFile class.

See Also:
ReadThemeFile

getFuelTemp

java.lang.String getFuelTemp()
This method updates the object during the second pass of the Theme file parsing. This method should only be called by the ReadThemeFile class.

See Also:
ReadThemeFile

getScannerTemp

java.lang.String getScannerTemp()
This method updates the object during the second pass of the Theme file parsing. This method should only be called by the ReadThemeFile class.

See Also:
ReadThemeFile

getPowerTemp

java.lang.String getPowerTemp()
This method updates the object during the second pass of the Theme file parsing. This method should only be called by the ReadThemeFile class.

See Also:
ReadThemeFile

getComputerTemp

java.lang.String getComputerTemp()
This method updates the object during the second pass of the Theme file parsing. This method should only be called by the ReadThemeFile class.

See Also:
ReadThemeFile

getStorageTemp

java.lang.String getStorageTemp()
This method updates the object during the second pass of the Theme file parsing. This method should only be called by the ReadThemeFile class.

See Also:
ReadThemeFile

getColonyTemp

java.lang.String getColonyTemp()
This method updates the object during the second pass of the Theme file parsing. This method should only be called by the ReadThemeFile class.

See Also:
ReadThemeFile

updateLinks

void updateLinks(ModuleDesignID shield,
                 ModuleDesignID attack,
                 ModuleDesignID armor,
                 ModuleDesignID drive,
                 ModuleDesignID fuel,
                 ModuleDesignID scanner,
                 ModuleDesignID power,
                 ModuleDesignID computer,
                 ModuleDesignID storage,
                 ModuleDesignID colony)
This method updates the object during the second pass of the Theme file parsing. This method should only be called by the ReadThemeFile class.

See Also:
ReadThemeFile

newShipDesign

static ShipDesignID newShipDesign(CivID AID,
                                  java.lang.String name,
                                  ModuleDesignID shield,
                                  ModuleDesignID attack,
                                  ModuleDesignID armor,
                                  ModuleDesignID drive,
                                  ModuleDesignID fuel,
                                  ModuleDesignID scanner,
                                  ModuleDesignID power,
                                  ModuleDesignID computer,
                                  ModuleDesignID storage,
                                  ModuleDesignID colony)

getShieldEID

public ModuleDesignID getShieldEID()

getAttackEID

public ModuleDesignID getAttackEID()

getArmorEID

public ModuleDesignID getArmorEID()

getDriveEID

public ModuleDesignID getDriveEID()

getFuelEID

public ModuleDesignID getFuelEID()

getScannerEID

public ModuleDesignID getScannerEID()

getPowerEID

public ModuleDesignID getPowerEID()

getComputerEID

public ModuleDesignID getComputerEID()

getStorageEID

public ModuleDesignID getStorageEID()

getColonyEID

public ModuleDesignID getColonyEID()

getDefense

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

getAttack

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

getSpeed

public SpeedBase getSpeed()
Specified by:
getSpeed in class ShipDesignBase

getScanning

public ScanningBase getScanning()
Specified by:
getScanning in class ShipDesignBase

getCloaking

public CloakingBase getCloaking()
Specified by:
getCloaking in class ShipDesignBase

getBuildCost

public CostID getBuildCost()

getPopulationBuildCost

public float getPopulationBuildCost()

getEngineeringCost

float getEngineeringCost()

getEngineeringCostDifference

private float getEngineeringCostDifference(ShipDesignID HID)

getPowerUsage

public float getPowerUsage()

getExtraPower

float getExtraPower()

isColonizable

public boolean isColonizable()
Specified by:
isColonizable in class ShipDesignBase

colonize

public boolean colonize(PlanetID PID)
Specified by:
colonize in class ShipDesignBase

specificDisplayDebug

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


Copyright © 2001 Universe Dev Team All Rights Reserved.