Documentation

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

$armourDamage read-only

protected int $armourDamage

$CACHE_WEAPON_TYPES

protected static array<int, self> $CACHE_WEAPON_TYPES = []

$shieldDamage read-only

protected int $shieldDamage

$weaponTypeID read-only

protected int $weaponTypeID

Methods

getAccuracy()

public getAccuracy() : int
Return values
int

getAllSoldWeaponTypes()

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
int

getCost()

public getCost() : int
Return values
int

getName()

public getName() : string
Return values
string

getPowerLevel()

public getPowerLevel() : int
Return values
int

getRaceID()

public getRaceID() : int
Return values
int

getRaceName()

public getRaceName() : string
Return values
string

getShieldDamage()

public getShieldDamage() : int
Return values
int

getWeaponType()

public static getWeaponType(int $weaponTypeID[, DatabaseRecord $dbRecord = null ]) : self
Parameters
$weaponTypeID : int
$dbRecord : DatabaseRecord = null
Return values
self

getWeaponTypeID()

public getWeaponTypeID() : int
Return values
int

        
On this page

Search results