DeathEvent
extends BattleEvent
in package
BattleEvent representing a fighter's death.
Table of Contents
- $victim : mixed
- $applied : mixed
- __construct() : mixed
- Construct a DeathEvent for victim $victim.
- apply() : mixed
- Applies the event.
- decorate() : string
- Returns a string describing the event.
Properties
$victim
protected
mixed
$victim
$applied
private
mixed
$applied
= false
Methods
__construct()
Construct a DeathEvent for victim $victim.
public
__construct(FighterInterface $victim) : mixed
Parameters
- $victim : FighterInterface
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