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
$damageRollover
protected
bool
$damageRollover
Methods
canShootTarget()
public
canShootTarget(CombatantInterface $target) : bool
Parameters
- $target : CombatantInterface
Return values
boolgetArmourDamage()
public
abstract getArmourDamage() : int
Return values
intgetBaseAccuracy()
public
abstract getBaseAccuracy() : int
Return values
intgetDamage()
public
getDamage() : WeaponDamage
Return values
WeaponDamagegetModifiedDamageAgainstTarget()
public
abstract getModifiedDamageAgainstTarget(CombatantInterface $shooter, CombatantInterface $target) : WeaponDamage
Parameters
- $shooter : CombatantInterface
- $target : CombatantInterface
Return values
WeaponDamagegetName()
public
abstract getName() : string
Return values
stringgetShieldDamage()
public
abstract getShieldDamage() : int
Return values
intisDamageRollover()
public
isDamageRollover() : bool
Return values
boolhitTarget()
Applies this weapon's modified damage and resolves a killing shot, if any.
protected
hitTarget(WeaponShotAtCombatant<string|int, TTarget> $shot) : HitWeaponResult<string|int, TTarget>
Parameters
- $shot : WeaponShotAtCombatant<string|int, TTarget>