PlanetAttackerCombatResults
extends TeamCombatResults
in package
Read onlyYes
FinalYes
Tags
Table of Contents
Properties
- $downgrades : array<string|int, mixed>
- $totalDamage : int
- $traders : array<string|int, mixed>
Methods
- __construct() : mixed
- getTotalDamageDealtTo() : int
- Get total damage done to an enemy combatant by this team.
- hasCombatant() : bool
- Is combatant a member of this team?
Properties
$downgrades
public
array<string|int, mixed>
$downgrades
$totalDamage
public
int
$totalDamage
$traders
public
array<string|int, mixed>
$traders
Methods
__construct()
public
__construct(int $totalDamage, array<int, CombatantResult<string|int, NormalCombatantInterface>> $traders, array<int, int> $downgrades) : mixed
Parameters
- $totalDamage : int
- $traders : array<int, CombatantResult<string|int, NormalCombatantInterface>>
- $downgrades : array<int, int>
getTotalDamageDealtTo()
Get total damage done to an enemy combatant by this team.
public
getTotalDamageDealtTo(CombatantInterface $target) : int
Parameters
- $target : CombatantInterface
Return values
inthasCombatant()
Is combatant a member of this team?
public
hasCombatant(CombatantInterface $combatant) : bool
Parameters
- $combatant : CombatantInterface