WeaponType
in package
uses
RaceID
Defines the base weapon types for ships/planets.
Table of Contents
Properties
- $accuracy : int
- $armourDamage : int
- $buyerRestriction : BuyerRestriction
- $CACHE_WEAPON_TYPES : array<int, self>
- $cost : int
- $name : string
- $powerLevel : int
- $raceID : int
- $shieldDamage : int
- $weaponTypeID : int
Methods
- getAccuracy() : int
- getAllSoldWeaponTypes() : array<int, self>
- Returns all weapon types that are purchasable in the given game.
- getAllWeaponTypes() : array<int, self>
- getArmourDamage() : int
- getBuyerRestriction() : BuyerRestriction
- getCost() : int
- getName() : string
- getPowerLevel() : int
- getRaceID() : int
- getRaceName() : string
- getShieldDamage() : int
- getWeaponType() : self
- getWeaponTypeID() : int
- __construct() : mixed
Properties
$accuracy read-only
protected
int
$accuracy
$armourDamage read-only
protected
int
$armourDamage
$buyerRestriction read-only
protected
BuyerRestriction
$buyerRestriction
$CACHE_WEAPON_TYPES
protected
static array<int, self>
$CACHE_WEAPON_TYPES
= []
$cost read-only
protected
int
$cost
$name read-only
protected
string
$name
$powerLevel read-only
protected
int
$powerLevel
$raceID
protected
int
$raceID
$shieldDamage read-only
protected
int
$shieldDamage
$weaponTypeID read-only
protected
int
$weaponTypeID
Methods
getAccuracy()
public
getAccuracy() : int
Return values
intgetAllSoldWeaponTypes()
Returns all weapon types that are purchasable in the given game.
public
static getAllSoldWeaponTypes(int $gameID) : array<int, self>
Parameters
- $gameID : int
Return values
array<int, self>getAllWeaponTypes()
public
static getAllWeaponTypes() : array<int, self>
Return values
array<int, self>getArmourDamage()
public
getArmourDamage() : int
Return values
intgetBuyerRestriction()
public
getBuyerRestriction() : BuyerRestriction
Return values
BuyerRestrictiongetCost()
public
getCost() : int
Return values
intgetName()
public
getName() : string
Return values
stringgetPowerLevel()
public
getPowerLevel() : int
Return values
intgetRaceID()
public
getRaceID() : int
Return values
intgetRaceName()
public
getRaceName() : string
Return values
stringgetShieldDamage()
public
getShieldDamage() : int
Return values
intgetWeaponType()
public
static getWeaponType(int $weaponTypeID[, DatabaseRecord|null $dbRecord = null ]) : self
Parameters
- $weaponTypeID : int
- $dbRecord : DatabaseRecord|null = null
Return values
selfgetWeaponTypeID()
public
getWeaponTypeID() : int
Return values
int__construct()
protected
__construct(int $weaponTypeID, DatabaseRecord $dbRecord) : mixed
Parameters
- $weaponTypeID : int
- $dbRecord : DatabaseRecord