ShipType
in package
uses
RaceID
Defines the base ship types
Table of Contents
Properties
- $raceID : int
- $baseManeuverability : int
- $CACHE_SHIP_TYPES : array<int, self>
- $class : ShipClass
- $cost : int
- $hardpoints : int
- $maxHardware : array<int, int>
- $maxPower : int
- $name : string
- $restriction : BuyerRestriction
- $speed : int
- $typeID : int
Methods
- canHaveCloak() : bool
- canHaveDCS() : bool
- canHaveIllusion() : bool
- canHaveJump() : bool
- canHaveScanner() : bool
- clearCache() : void
- get() : self
- getAll() : array<int, self>
- getAllMaxHardware() : array<int, int>
- getBaseManeuverability() : int
- getClass() : ShipClass
- getCost() : int
- getHardpoints() : int
- getMaxHardware() : int
- getMaxPower() : int
- Return the maximum weapon power
- getName() : string
- getRaceID() : int
- getRaceName() : string
- getRestriction() : BuyerRestriction
- getSpeed() : int
- Return the base ship speed (unmodified by the game speed)
- getTypeID() : int
- __construct() : mixed
Properties
$raceID
protected
int
$raceID
$baseManeuverability read-only
private
int
$baseManeuverability
$CACHE_SHIP_TYPES
private
static array<int, self>
$CACHE_SHIP_TYPES
= []
$class read-only
private
ShipClass
$class
$cost read-only
private
int
$cost
$hardpoints read-only
private
int
$hardpoints
$maxHardware read-only
private
array<int, int>
$maxHardware
$maxPower read-only
private
int
$maxPower
$name read-only
private
string
$name
$restriction read-only
private
BuyerRestriction
$restriction
$speed read-only
private
int
$speed
$typeID read-only
private
int
$typeID
Methods
canHaveCloak()
public
canHaveCloak() : bool
Return values
boolcanHaveDCS()
public
canHaveDCS() : bool
Return values
boolcanHaveIllusion()
public
canHaveIllusion() : bool
Return values
boolcanHaveJump()
public
canHaveJump() : bool
Return values
boolcanHaveScanner()
public
canHaveScanner() : bool
Return values
boolclearCache()
public
static clearCache() : void
get()
public
static get(int $shipTypeID[, DatabaseRecord|null $dbRecord = null ]) : self
Parameters
- $shipTypeID : int
- $dbRecord : DatabaseRecord|null = null
Return values
selfgetAll()
public
static getAll() : array<int, self>
Return values
array<int, self>getAllMaxHardware()
public
getAllMaxHardware() : array<int, int>
Return values
array<int, int>getBaseManeuverability()
public
getBaseManeuverability() : int
Return values
intgetClass()
public
getClass() : ShipClass
Return values
ShipClassgetCost()
public
getCost() : int
Return values
intgetHardpoints()
public
getHardpoints() : int
Return values
intgetMaxHardware()
public
getMaxHardware(int $hardwareTypeID) : int
Parameters
- $hardwareTypeID : int
Return values
intgetMaxPower()
Return the maximum weapon power
public
getMaxPower() : int
Return values
intgetName()
public
getName() : string
Return values
stringgetRaceID()
public
getRaceID() : int
Return values
intgetRaceName()
public
getRaceName() : string
Return values
stringgetRestriction()
public
getRestriction() : BuyerRestriction
Return values
BuyerRestrictiongetSpeed()
Return the base ship speed (unmodified by the game speed)
public
getSpeed() : int
Return values
intgetTypeID()
public
getTypeID() : int
Return values
int__construct()
protected
__construct(DatabaseRecord $dbRecord) : mixed
Parameters
- $dbRecord : DatabaseRecord