TeamCombatResults
in package
Read onlyYes
Tags
Table of Contents
Properties
- $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
$totalDamage
public
int
$totalDamage
$traders
public
array<string|int, mixed>
$traders
Methods
__construct()
public
__construct(int $totalDamage, array<int, CombatantResult<string|int, TTarget>> $traders) : mixed
Parameters
- $totalDamage : int
- $traders : array<int, CombatantResult<string|int, TTarget>>
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