Documentation

Mines extends AbstractWeapon
in package
uses ForcesTrait

Table of Contents

Constants

DCS_DAMAGE_MODIFIER  : float = 0.75
FED_SHIP_DAMAGE_MODIFIER  : float = 0.5
PLANET_DAMAGE_MOD  : float = 0.2
Reduce the damage done to planets by this factor
TOTAL_ENEMY_MINES_MODIFIER  : float = 25

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
getModifiedDamageAgainstTarget()  : WeaponDamage
getModifiedForceAccuracyAgainstPlayer()  : float
getName()  : string
getShieldDamage()  : int
isDamageRollover()  : bool
shoot()  : HitWeaponResult<string|int, Ship>
hitTarget()  : HitWeaponResult<string|int, TTarget>
Applies this weapon's modified damage and resolves a killing shot, if any.
hitShipTarget()  : HitWeaponResult<string|int, Ship>

Constants

DCS_DAMAGE_MODIFIER

protected float DCS_DAMAGE_MODIFIER = 0.75

FED_SHIP_DAMAGE_MODIFIER

protected float FED_SHIP_DAMAGE_MODIFIER = 0.5

PLANET_DAMAGE_MOD

Reduce the damage done to planets by this factor

protected float PLANET_DAMAGE_MOD = 0.2

TOTAL_ENEMY_MINES_MODIFIER

protected float TOTAL_ENEMY_MINES_MODIFIER = 25

Properties

Methods

__construct()

public __construct(int $numberOfMines) : mixed
Parameters
$numberOfMines : int

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

getModifiedForceAccuracyAgainstPlayer()

public getModifiedForceAccuracyAgainstPlayer(Force $forces, Ship $target, bool $minesAreAttacker) : float
Parameters
$forces : Force
$target : Ship
$minesAreAttacker : bool
Return values
float

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