Documentation

AbstractWeapon
in package

AbstractYes

Table of Contents

Constants

PLANET_DAMAGE_MOD  : float = 0.2
Reduce the damage done to planets by this factor

Properties

$damageRollover  : bool

Methods

canShootTarget()  : bool
getArmourDamage()  : int
getBaseAccuracy()  : int
getDamage()  : WeaponDamage
getModifiedDamageAgainstTarget()  : WeaponDamage
getName()  : string
getShieldDamage()  : int
isDamageRollover()  : bool
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

getArmourDamage()

public abstract getArmourDamage() : int
Return values
int

getBaseAccuracy()

public abstract getBaseAccuracy() : int
Return values
int

getName()

public abstract getName() : string
Return values
string

getShieldDamage()

public abstract getShieldDamage() : int
Return values
int

isDamageRollover()

public isDamageRollover() : bool
Return values
bool

        
On this page

Search results