AbstractWeapon
in package
AbstractYes
Table of Contents
Constants
- PLANET_DAMAGE_MOD = 0.2
- Reduce the damage done to planets by this factor
Properties
- $damageRollover : bool
Methods
- canShootForces() : bool
- canShootPlanets() : bool
- canShootPorts() : bool
- canShootTraders() : bool
- getArmourDamage() : int
- getBaseAccuracy() : int
- getDamage() : WeaponDamageData
- getModifiedDamageAgainstForces() : WeaponDamageData
- getModifiedDamageAgainstPlanet() : WeaponDamageData
- getModifiedDamageAgainstPlayer() : WeaponDamageData
- getModifiedDamageAgainstPort() : WeaponDamageData
- getModifiedForceDamageAgainstPlayer() : WeaponDamageData
- getModifiedPlanetDamageAgainstPlayer() : WeaponDamageData
- getModifiedPortDamageAgainstPlayer() : WeaponDamageData
- getName() : string
- getShieldDamage() : int
- isDamageRollover() : bool
- shootForces() : ForceTakenDamageData, KillResults?: array{}}
- shootPlayer() : TakenDamageData, KillResults?: array{DeadExp: int, KillerExp: int, KillerCredits: int}}
- shootPlayerAsForce() : TakenDamageData, KillResults?: array{DeadExp: int, LostCredits: int}}
- doForceDamageToPlayer() : TakenDamageData, KillResults?: array{DeadExp: int, LostCredits: int}}
- doPlanetDamageToPlayer() : TakenDamageData, KillResults?: array{DeadExp: int, LostCredits: int}}
- doPlayerDamageToForce() : ForceTakenDamageData, KillResults?: array{}}
- doPlayerDamageToPlanet() : TakenDamageData, KillResults?: array{}}
- doPlayerDamageToPlayer() : TakenDamageData, KillResults?: array{DeadExp: int, KillerExp: int, KillerCredits: int}}
- doPlayerDamageToPort() : TakenDamageData, KillResults?: array{}}
- doPortDamageToPlayer() : TakenDamageData, KillResults?: array{DeadExp: int, LostCredits: int}}
Constants
PLANET_DAMAGE_MOD
Reduce the damage done to planets by this factor
protected
mixed
PLANET_DAMAGE_MOD
= 0.2
Properties
$damageRollover
protected
bool
$damageRollover
Methods
canShootForces()
public
canShootForces() : bool
Return values
boolcanShootPlanets()
public
canShootPlanets() : bool
Return values
boolcanShootPorts()
public
canShootPorts() : bool
Return values
boolcanShootTraders()
public
canShootTraders() : bool
Return values
boolgetArmourDamage()
public
abstract getArmourDamage() : int
Return values
intgetBaseAccuracy()
public
abstract getBaseAccuracy() : int
Return values
intgetDamage()
public
getDamage() : WeaponDamageData
Return values
WeaponDamageDatagetModifiedDamageAgainstForces()
public
abstract getModifiedDamageAgainstForces(AbstractPlayer $weaponPlayer, Force $forces) : WeaponDamageData
Parameters
- $weaponPlayer : AbstractPlayer
- $forces : Force
Return values
WeaponDamageDatagetModifiedDamageAgainstPlanet()
public
abstract getModifiedDamageAgainstPlanet(AbstractPlayer $weaponPlayer, Planet $planet) : WeaponDamageData
Parameters
- $weaponPlayer : AbstractPlayer
- $planet : Planet
Return values
WeaponDamageDatagetModifiedDamageAgainstPlayer()
public
abstract getModifiedDamageAgainstPlayer(AbstractPlayer $weaponPlayer, AbstractPlayer $targetPlayer) : WeaponDamageData
Parameters
- $weaponPlayer : AbstractPlayer
- $targetPlayer : AbstractPlayer
Return values
WeaponDamageDatagetModifiedDamageAgainstPort()
public
abstract getModifiedDamageAgainstPort(AbstractPlayer $weaponPlayer, Port $port) : WeaponDamageData
Parameters
- $weaponPlayer : AbstractPlayer
- $port : Port
Return values
WeaponDamageDatagetModifiedForceDamageAgainstPlayer()
public
abstract getModifiedForceDamageAgainstPlayer(Force $forces, AbstractPlayer $targetPlayer) : WeaponDamageData
Parameters
- $forces : Force
- $targetPlayer : AbstractPlayer
Return values
WeaponDamageDatagetModifiedPlanetDamageAgainstPlayer()
public
abstract getModifiedPlanetDamageAgainstPlayer(Planet $planet, AbstractPlayer $targetPlayer) : WeaponDamageData
Parameters
- $planet : Planet
- $targetPlayer : AbstractPlayer
Return values
WeaponDamageDatagetModifiedPortDamageAgainstPlayer()
public
abstract getModifiedPortDamageAgainstPlayer(Port $port, AbstractPlayer $targetPlayer) : WeaponDamageData
Parameters
- $port : Port
- $targetPlayer : AbstractPlayer
Return values
WeaponDamageDatagetName()
public
abstract getName() : string
Return values
stringgetShieldDamage()
public
abstract getShieldDamage() : int
Return values
intisDamageRollover()
public
isDamageRollover() : bool
Return values
boolshootForces()
public
abstract shootForces(AbstractPlayer $weaponPlayer, Force $forces) : ForceTakenDamageData, KillResults?: array{}}
Parameters
- $weaponPlayer : AbstractPlayer
- $forces : Force
Return values
ForceTakenDamageData, KillResults?: array{}}shootPlayer()
public
abstract shootPlayer(AbstractPlayer $weaponPlayer, AbstractPlayer $targetPlayer) : TakenDamageData, KillResults?: array{DeadExp: int, KillerExp: int, KillerCredits: int}}
Parameters
- $weaponPlayer : AbstractPlayer
- $targetPlayer : AbstractPlayer
Return values
TakenDamageData, KillResults?: array{DeadExp: int, KillerExp: int, KillerCredits: int}}shootPlayerAsForce()
public
abstract shootPlayerAsForce(Force $forces, AbstractPlayer $targetPlayer) : TakenDamageData, KillResults?: array{DeadExp: int, LostCredits: int}}
Parameters
- $forces : Force
- $targetPlayer : AbstractPlayer
Return values
TakenDamageData, KillResults?: array{DeadExp: int, LostCredits: int}}doForceDamageToPlayer()
protected
doForceDamageToPlayer(AbstractPlayer, Hit: bool} $return, Force $forces, AbstractPlayer $targetPlayer) : TakenDamageData, KillResults?: array{DeadExp: int, LostCredits: int}}
Parameters
- $return : AbstractPlayer, Hit: bool}
- $forces : Force
- $targetPlayer : AbstractPlayer
Return values
TakenDamageData, KillResults?: array{DeadExp: int, LostCredits: int}}doPlanetDamageToPlayer()
protected
doPlanetDamageToPlayer(AbstractPlayer, Hit: bool} $return, Planet $planet, AbstractPlayer $targetPlayer) : TakenDamageData, KillResults?: array{DeadExp: int, LostCredits: int}}
Parameters
- $return : AbstractPlayer, Hit: bool}
- $planet : Planet
- $targetPlayer : AbstractPlayer
Return values
TakenDamageData, KillResults?: array{DeadExp: int, LostCredits: int}}doPlayerDamageToForce()
protected
doPlayerDamageToForce(Force, Hit: bool} $return, AbstractPlayer $weaponPlayer, Force $forces) : ForceTakenDamageData, KillResults?: array{}}
Parameters
- $return : Force, Hit: bool}
- $weaponPlayer : AbstractPlayer
- $forces : Force
Return values
ForceTakenDamageData, KillResults?: array{}}doPlayerDamageToPlanet()
protected
doPlayerDamageToPlanet(Planet, Hit: bool} $return, AbstractPlayer $weaponPlayer, Planet $planet) : TakenDamageData, KillResults?: array{}}
Parameters
- $return : Planet, Hit: bool}
- $weaponPlayer : AbstractPlayer
- $planet : Planet
Return values
TakenDamageData, KillResults?: array{}}doPlayerDamageToPlayer()
protected
doPlayerDamageToPlayer(AbstractPlayer, Hit: bool} $return, AbstractPlayer $weaponPlayer, AbstractPlayer $targetPlayer) : TakenDamageData, KillResults?: array{DeadExp: int, KillerExp: int, KillerCredits: int}}
Parameters
- $return : AbstractPlayer, Hit: bool}
- $weaponPlayer : AbstractPlayer
- $targetPlayer : AbstractPlayer
Return values
TakenDamageData, KillResults?: array{DeadExp: int, KillerExp: int, KillerCredits: int}}doPlayerDamageToPort()
protected
doPlayerDamageToPort(Port, Hit: bool} $return, AbstractPlayer $weaponPlayer, Port $port) : TakenDamageData, KillResults?: array{}}
Parameters
- $return : Port, Hit: bool}
- $weaponPlayer : AbstractPlayer
- $port : Port
Return values
TakenDamageData, KillResults?: array{}}doPortDamageToPlayer()
protected
doPortDamageToPlayer(AbstractPlayer, Hit: bool} $return, Port $port, AbstractPlayer $targetPlayer) : TakenDamageData, KillResults?: array{DeadExp: int, LostCredits: int}}
Parameters
- $return : AbstractPlayer, Hit: bool}
- $port : Port
- $targetPlayer : AbstractPlayer