com.swath
Class ShipCategory

java.lang.Object
  extended bycom.swath.Info
      extended bycom.swath.ShipCategory

public final class ShipCategory
extends Info

This class represents a ship category in TW.

Since:
SWATH 1.6

Method Summary
 int basicHoldCost()
          Gets the basic hold cost for the ship category.
 java.lang.Object clone()
           
 int computerCost()
          Gets the computer cost for the ship category.
 float defensiveOdds()
          Gets the defensive odds for the ship category.
 void dump()
          Dumps the ship category info in the terminal window.
 boolean equals(java.lang.Object obj)
           
 int initHolds()
          Gets the initial number of holds for the ship category.
 boolean longRangeScanner()
          Indicates if the ship category can have a Long range scanner or not.
 int mainDriveCost()
          Gets the main drive cost for the ship category.
 int maxArmidMines()
          Gets the maximum number of Armid mines for the ship category.
 int maxBeacons()
          Gets the maximum number of Marker beacons for the ship category.
 int maxFighters()
          Gets the maximum number of fighters for the ship category.
 int maxFightersPerAttack()
          Gets the maximum number of fighters per attack for the ship category.
 int maxGenesisTorpedos()
          Gets the maximum number of Genesis torpedos for the ship category.
 int maxHolds()
          Gets the maximum number of holds for the ship category.
 int maxShields()
          Gets the maximum number of shields for the ship category.
 float offensiveOdds()
          Gets the offensive odds for the ship category.
 boolean photonMissiles()
          Indicates if the ship category can have Photon missiles or not.
 boolean planetScanner()
          Indicates if the ship category can have a Planet scanner or not.
 int shipBaseCost()
          Gets the ship base cost for the ship category.
 int shipHullCost()
          Gets the ship hull cost for the ship category.
 java.lang.String toString()
           
 int transportRange()
          Gets the range of the transporter for the ship category.
 boolean transWarpDrive()
          Indicates if the ship category can have a TransWarp drive or not.
 int turnsPerWarp()
          Gets the number of turns per warp for the ship category.
 java.lang.String type()
          Gets the ship type.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object obj)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

type

public java.lang.String type()
                      throws java.lang.Exception
Gets the ship type.

Returns:
The ship type.
Throws:
java.lang.Exception
Since:
SWATH 1.6

basicHoldCost

public int basicHoldCost()
                  throws java.lang.Exception
Gets the basic hold cost for the ship category.

Returns:
The basic hold cost.
Throws:
java.lang.Exception
Since:
SWATH 1.6

mainDriveCost

public int mainDriveCost()
                  throws java.lang.Exception
Gets the main drive cost for the ship category.

Returns:
The main drive cost.
Throws:
java.lang.Exception
Since:
SWATH 1.6

computerCost

public int computerCost()
                 throws java.lang.Exception
Gets the computer cost for the ship category.

Returns:
The computer cost.
Throws:
java.lang.Exception
Since:
SWATH 1.6

shipHullCost

public int shipHullCost()
                 throws java.lang.Exception
Gets the ship hull cost for the ship category.

Returns:
The ship hull cost.
Throws:
java.lang.Exception
Since:
SWATH 1.6

shipBaseCost

public int shipBaseCost()
                 throws java.lang.Exception
Gets the ship base cost for the ship category.

Returns:
The ship base cost.
Throws:
java.lang.Exception
Since:
SWATH 1.6

maxHolds

public int maxHolds()
             throws java.lang.Exception
Gets the maximum number of holds for the ship category.

Returns:
The maximum number of holds.
Throws:
java.lang.Exception
Since:
SWATH 1.6

initHolds

public int initHolds()
              throws java.lang.Exception
Gets the initial number of holds for the ship category.

Returns:
The initial number of holds.
Throws:
java.lang.Exception
Since:
SWATH 1.6

maxFighters

public int maxFighters()
                throws java.lang.Exception
Gets the maximum number of fighters for the ship category.

Returns:
The maximum number of fighters.
Throws:
java.lang.Exception
Since:
SWATH 1.6

maxShields

public int maxShields()
               throws java.lang.Exception
Gets the maximum number of shields for the ship category.

Returns:
The maximum number of shields.
Throws:
java.lang.Exception
Since:
SWATH 1.6

maxArmidMines

public int maxArmidMines()
                  throws java.lang.Exception
Gets the maximum number of Armid mines for the ship category.

Returns:
The maximum number of mines.
Throws:
java.lang.Exception
Since:
SWATH 1.6

maxGenesisTorpedos

public int maxGenesisTorpedos()
                       throws java.lang.Exception
Gets the maximum number of Genesis torpedos for the ship category.

Returns:
The maximum number of torpedos.
Throws:
java.lang.Exception
Since:
SWATH 1.6

maxBeacons

public int maxBeacons()
               throws java.lang.Exception
Gets the maximum number of Marker beacons for the ship category.

Returns:
The maximum number of beacons.
Throws:
java.lang.Exception
Since:
SWATH 1.6

maxFightersPerAttack

public int maxFightersPerAttack()
                         throws java.lang.Exception
Gets the maximum number of fighters per attack for the ship category.

Returns:
The maximum number of fighters per attack.
Throws:
java.lang.Exception
Since:
SWATH 1.6

offensiveOdds

public float offensiveOdds()
                    throws java.lang.Exception
Gets the offensive odds for the ship category.

Returns:
The offensive odds.
Throws:
java.lang.Exception
Since:
SWATH 1.6

defensiveOdds

public float defensiveOdds()
                    throws java.lang.Exception
Gets the defensive odds for the ship category.

Returns:
The defensive odds.
Throws:
java.lang.Exception
Since:
SWATH 1.6

turnsPerWarp

public int turnsPerWarp()
                 throws java.lang.Exception
Gets the number of turns per warp for the ship category.

Returns:
The number of turns per warp.
Throws:
java.lang.Exception
Since:
SWATH 1.6

transportRange

public int transportRange()
                   throws java.lang.Exception
Gets the range of the transporter for the ship category.

Returns:
The transport range.
Throws:
java.lang.Exception
Since:
SWATH 1.6

transWarpDrive

public boolean transWarpDrive()
                       throws java.lang.Exception
Indicates if the ship category can have a TransWarp drive or not.

Returns:
true if it can have a TransWarp drive, otherwise false.
Throws:
java.lang.Exception
Since:
SWATH 1.6

longRangeScanner

public boolean longRangeScanner()
                         throws java.lang.Exception
Indicates if the ship category can have a Long range scanner or not. (This includes both Density and Holographic scanners)

Returns:
true if it can have a Long range scanner, otherwise false.
Throws:
java.lang.Exception
Since:
SWATH 1.6

planetScanner

public boolean planetScanner()
                      throws java.lang.Exception
Indicates if the ship category can have a Planet scanner or not.

Returns:
true if it can have a Planet scanner, otherwise false.
Throws:
java.lang.Exception
Since:
SWATH 1.6

photonMissiles

public boolean photonMissiles()
                       throws java.lang.Exception
Indicates if the ship category can have Photon missiles or not.

Returns:
true if it can have Photon missiles, otherwise false.
Throws:
java.lang.Exception
Since:
SWATH 1.6

dump

public void dump()
          throws java.lang.Exception
Dumps the ship category info in the terminal window.

Throws:
java.lang.Exception
Since:
SWATH 1.6