Documentation

CombatDrones extends AbstractWeapon
in package
uses ForcesTrait

Table of Contents

Constants

MAX_CDS_RAND  : int = 54
MIN_CDS_RAND  : int = 3
PLANET_DAMAGE_MOD  : float = 0.2
Reduce the damage done to planets by this factor

Properties

$accuracy  : int
$amount  : int
$armourDamage  : int
$damageRollover  : bool
$name  : string
$shieldDamage  : int

Methods

__construct()  : mixed
canShootTarget()  : bool
getAmount()  : int
Returns the amount of this type of force.
getArmourDamage()  : int
getBaseAccuracy()  : int
getDamage()  : WeaponDamage
getModifiedAccuracyAgainstTarget()  : float
getModifiedDamageAgainstTarget()  : WeaponDamage
getName()  : string
getShieldDamage()  : int
isDamageRollover()  : bool
shoot()  : HitWeaponResult<string|int, TTarget>
hitTarget()  : HitWeaponResult<string|int, TTarget>
Applies this weapon's modified damage and resolves a killing shot, if any.

Constants

PLANET_DAMAGE_MOD

Reduce the damage done to planets by this factor

protected float PLANET_DAMAGE_MOD = 0.2

Properties

Methods

__construct()

public __construct(int $numberOfCDs[, bool $portPlanetDrones = false ]) : mixed
Parameters
$numberOfCDs : int
$portPlanetDrones : bool = false

getAmount()

Returns the amount of this type of force.

public getAmount() : int
Return values
int

getArmourDamage()

public getArmourDamage() : int
Return values
int

getBaseAccuracy()

public getBaseAccuracy() : int
Return values
int

getName()

public getName() : string
Return values
string

getShieldDamage()

public getShieldDamage() : int
Return values
int

isDamageRollover()

public isDamageRollover() : bool
Return values
bool

        
On this page

Search results