com.swath.cmd
Class BuyItems

java.lang.Object
  extended by com.swath.Info
      extended by com.swath.cmd.BuyItems
All Implemented Interfaces:
CommandIfc

public final class BuyItems
extends Info

Buy items from StarDock or a class 0 port.
Prompts: StarDock and Command prompt

Since:
SWATH 1.3

Field Summary
static int ARMID_MINES
          The 'Space Mines' item type.
static int ATOMIC_DETONATORS
          The 'Atomic Detonators' item type.
static int CARGO_HOLDS
          The 'Cargo Holds' item type.
static int CLOAKING_DEVICES
          The 'Cloaking Devices' item type.
static int CORBOMITE_DEVICES
          The 'Corbomite Devices' item type.
static int DENSITY_SCANNER
          The 'Density Scanner' item type.
static int ETHER_PROBES
          The 'SubSpace Ether Probes' item type.
static int FIGHTERS
          The 'Fighters' item type.
static int GENESIS_TORPEDOES
          The 'Genesis Torpedoes' item type.
static int HOLO_SCANNER
          The 'Holographic Scanner' item type.
static int LIMPET_MINES
          The 'Limpet Tracking Mines' item type.
static int MARKER_BEACONS
          The 'Marker Beacons' item type.
static int MINE_DISRUPTORS
          The 'Mine Disruptors' item type.
static int ONE_SHIP_TW_DRIVE
          The 'One Ship TransWarp Drive' item type.
static int PHOTON_MISSILES
          The 'Photon Missiles' item type.
static int PLANET_SCANNER
          The 'Planet Scanner' item type.
static int PSYCHIC_PROBE
          The 'Psychic Probe' item type.
static int SHIELDS
          The 'Shields' item type.
static int TWO_SHIP_TW_DRIVE
          The 'Two Ship TransWarp Drive' item type.
 
Method Summary
static void exec(int type, int amount)
          Buy items from StarDock or a class 0 port.
 java.lang.String getClassName()
          Gets the command class name.
 java.lang.String getName()
          Gets the name of the command.
 java.util.Enumeration getParams()
          Gets the command parameters.
 boolean initCommand()
           
 boolean isInternal()
          Indicates if this is an internal SWATH command or not.
 boolean isUserDefined()
          Indicates if this command is user defined or not.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIGHTERS

public static final int FIGHTERS
The 'Fighters' item type.

See Also:
Constant Field Values

SHIELDS

public static final int SHIELDS
The 'Shields' item type.

See Also:
Constant Field Values

CARGO_HOLDS

public static final int CARGO_HOLDS
The 'Cargo Holds' item type.

See Also:
Constant Field Values

ATOMIC_DETONATORS

public static final int ATOMIC_DETONATORS
The 'Atomic Detonators' item type.

See Also:
Constant Field Values

MARKER_BEACONS

public static final int MARKER_BEACONS
The 'Marker Beacons' item type.

See Also:
Constant Field Values

CORBOMITE_DEVICES

public static final int CORBOMITE_DEVICES
The 'Corbomite Devices' item type.

See Also:
Constant Field Values

CLOAKING_DEVICES

public static final int CLOAKING_DEVICES
The 'Cloaking Devices' item type.

See Also:
Constant Field Values

ETHER_PROBES

public static final int ETHER_PROBES
The 'SubSpace Ether Probes' item type.

See Also:
Constant Field Values

PLANET_SCANNER

public static final int PLANET_SCANNER
The 'Planet Scanner' item type.

See Also:
Constant Field Values

LIMPET_MINES

public static final int LIMPET_MINES
The 'Limpet Tracking Mines' item type.

See Also:
Constant Field Values

ARMID_MINES

public static final int ARMID_MINES
The 'Space Mines' item type.

See Also:
Constant Field Values

PHOTON_MISSILES

public static final int PHOTON_MISSILES
The 'Photon Missiles' item type.

See Also:
Constant Field Values

HOLO_SCANNER

public static final int HOLO_SCANNER
The 'Holographic Scanner' item type.

See Also:
Constant Field Values

DENSITY_SCANNER

public static final int DENSITY_SCANNER
The 'Density Scanner' item type.

See Also:
Constant Field Values

MINE_DISRUPTORS

public static final int MINE_DISRUPTORS
The 'Mine Disruptors' item type.

See Also:
Constant Field Values

GENESIS_TORPEDOES

public static final int GENESIS_TORPEDOES
The 'Genesis Torpedoes' item type.

See Also:
Constant Field Values

ONE_SHIP_TW_DRIVE

public static final int ONE_SHIP_TW_DRIVE
The 'One Ship TransWarp Drive' item type.

See Also:
Constant Field Values

TWO_SHIP_TW_DRIVE

public static final int TWO_SHIP_TW_DRIVE
The 'Two Ship TransWarp Drive' item type.

See Also:
Constant Field Values

PSYCHIC_PROBE

public static final int PSYCHIC_PROBE
The 'Psychic Probe' item type.

See Also:
Constant Field Values
Method Detail

initCommand

public boolean initCommand()
                    throws java.lang.Exception
Throws:
java.lang.Exception

exec

public static void exec(int type,
                        int amount)
                 throws java.lang.Exception
Buy items from StarDock or a class 0 port.

Parameters:
type - The type of item to buy.
amount - The amount of items to buy.
Throws:
java.lang.Exception
Since:
SWATH 1.3
See Also:
FIGHTERS, SHIELDS, CARGO_HOLDS, ATOMIC_DETONATORS, MARKER_BEACONS, CORBOMITE_DEVICES, CLOAKING_DEVICES, ETHER_PROBES, PLANET_SCANNER, LIMPET_MINES, ARMID_MINES, PHOTON_MISSILES, HOLO_SCANNER, DENSITY_SCANNER, MINE_DISRUPTORS, GENESIS_TORPEDOES, ONE_SHIP_TW_DRIVE, TWO_SHIP_TW_DRIVE, PSYCHIC_PROBE

isUserDefined

public final boolean isUserDefined()
Description copied from interface: CommandIfc
Indicates if this command is user defined or not.

Specified by:
isUserDefined in interface CommandIfc
Returns:
true if user defined, otherwise false.

getName

public final java.lang.String getName()
Description copied from interface: CommandIfc
Gets the name of the command.

Specified by:
getName in interface CommandIfc
Returns:
The command name.

getClassName

public final java.lang.String getClassName()
Description copied from interface: CommandIfc
Gets the command class name.

Specified by:
getClassName in interface CommandIfc
Returns:
The class name.

getParams

public final java.util.Enumeration getParams()
Description copied from interface: CommandIfc
Gets the command parameters.

Specified by:
getParams in interface CommandIfc
Returns:
The command parameters.

isInternal

public boolean isInternal()
Description copied from interface: CommandIfc
Indicates if this is an internal SWATH command or not.

Specified by:
isInternal in interface CommandIfc
Returns:
true if internal, otherwise false.