Documentation

FighterInterface

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

getDefense()

public getDefense([bool $ignoreBuffs = false ]) : int
Parameters
$ignoreBuffs : bool = false
Return values
int

getDisplayName()

public getDisplayName() : string
Return values
string

heal()

public heal(int $heal) : mixed
Parameters
$heal : int
Return values
mixed

setHealth()

public setHealth(int $amount) : mixed
Parameters
$amount : int
Return values
mixed

Search results