FighterInterface
in
Interface for models that should be able to participate in fights.
Table of Contents
- damage() : mixed
- getAttack() : int
- getBuffs() : BuffList
- getDefense() : int
- getDisplayName() : string
- getHealth() : int
- getLevel() : int
- getMaxHealth() : int
- heal() : mixed
- isAlive() : bool
- setHealth() : mixed
Methods
damage()
public
damage(int $damage) : mixed
Parameters
- $damage : int
Return values
mixed —getAttack()
public
getAttack([bool $ignoreBuffs = false ]) : int
Parameters
- $ignoreBuffs : bool = false
Return values
int —getBuffs()
public
getBuffs() : BuffList
Return values
BuffList —getDefense()
public
getDefense([bool $ignoreBuffs = false ]) : int
Parameters
- $ignoreBuffs : bool = false
Return values
int —getDisplayName()
public
getDisplayName() : string
Return values
string —getHealth()
public
getHealth() : int
Return values
int —getLevel()
public
getLevel() : int
Return values
int —getMaxHealth()
public
getMaxHealth() : int
Return values
int —heal()
public
heal(int $heal) : mixed
Parameters
- $heal : int
Return values
mixed —isAlive()
public
isAlive() : bool
Return values
bool —setHealth()
public
setHealth(int $amount) : mixed
Parameters
- $amount : int