Documentation

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

$baseManeuverability read-only

private int $baseManeuverability

$CACHE_SHIP_TYPES

private static array<int, self> $CACHE_SHIP_TYPES = []

$hardpoints read-only

private int $hardpoints

$maxHardware read-only

private array<int, int> $maxHardware

$maxPower read-only

private int $maxPower

Methods

canHaveCloak()

public canHaveCloak() : bool
Return values
bool

canHaveDCS()

public canHaveDCS() : bool
Return values
bool

canHaveIllusion()

public canHaveIllusion() : bool
Return values
bool

canHaveJump()

public canHaveJump() : bool
Return values
bool

canHaveScanner()

public canHaveScanner() : bool
Return values
bool

clearCache()

public static clearCache() : void

getAll()

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
int

getCost()

public getCost() : int
Return values
int

getHardpoints()

public getHardpoints() : int
Return values
int

getMaxHardware()

public getMaxHardware(int $hardwareTypeID) : int
Parameters
$hardwareTypeID : int
Return values
int

getMaxPower()

Return the maximum weapon power

public getMaxPower() : int
Return values
int

getName()

public getName() : string
Return values
string

getRaceID()

public getRaceID() : int
Return values
int

getRaceName()

public getRaceName() : string
Return values
string

getSpeed()

Return the base ship speed (unmodified by the game speed)

public getSpeed() : int
Return values
int

getTypeID()

public getTypeID() : int
Return values
int

        
On this page

Search results