CriticalHitEvent
extends BattleEvent
in package
Battle event representing a stronger than average attack.
Table of Contents
- $attacker : FighterInstance
- $criticalAttackValue : int
- $applied : mixed
- __construct() : mixed
- Construct a CriticalHitEvent with attacker $attacker.
- apply() : mixed
- Applies the event.
- decorate() : string
- Returns a string describing the event.
Properties
$attacker
protected
FighterInstance
$attacker
$criticalAttackValue
protected
int
$criticalAttackValue
$applied
private
mixed
$applied
= false
Methods
__construct()
Construct a CriticalHitEvent with attacker $attacker.
public
__construct(FighterInterface $attacker, int $criticalAttackValue) : mixed
Parameters
- $attacker : FighterInterface
- $criticalAttackValue : int
Return values
mixed —apply()
Applies the event.
public
apply() : mixed
Tags
Return values
mixed —decorate()
Returns a string describing the event.
public
decorate(Game $game) : string
Parameters
- $game : Game