public final class BuyItems extends Info
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final int FIGHTERS
public static final int SHIELDS
public static final int CARGO_HOLDS
public static final int ATOMIC_DETONATORS
public static final int MARKER_BEACONS
public static final int CORBOMITE_DEVICES
public static final int CLOAKING_DEVICES
public static final int ETHER_PROBES
public static final int PLANET_SCANNER
public static final int LIMPET_MINES
public static final int ARMID_MINES
public static final int PHOTON_MISSILES
public static final int HOLO_SCANNER
public static final int DENSITY_SCANNER
public static final int MINE_DISRUPTORS
public static final int GENESIS_TORPEDOES
public static final int ONE_SHIP_TW_DRIVE
public static final int TWO_SHIP_TW_DRIVE
public static final int PSYCHIC_PROBE
public boolean initCommand() throws java.lang.Exception
java.lang.Exception
public static void exec(int type, int amount) throws java.lang.Exception
type
- The type of item to buy.amount
- The amount of items to buy.java.lang.Exception
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
public final boolean isUserDefined()
CommandIfc
isUserDefined
in interface CommandIfc
true
if user defined, otherwise false
.public final java.lang.String getName()
CommandIfc
getName
in interface CommandIfc
public final java.lang.String getClassName()
CommandIfc
getClassName
in interface CommandIfc
public final java.util.Enumeration getParams()
CommandIfc
getParams
in interface CommandIfc
public boolean isInternal()
CommandIfc
isInternal
in interface CommandIfc
true
if internal, otherwise false
.