Documentation

CharacterInterface extends FighterInterface

Interface for the character model and all objects that mimick such a model.

Table of Contents

damage()  : mixed
getAttack()  : int
getBuffs()  : BuffList
getDefense()  : int
getDisplayName()  : string
getHealth()  : int
getId()  : UuidInterface
getLevel()  : int
getMaxHealth()  : int
getName()  : string
getProperty()  : mixed
getViewpoint()  : mixed
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

getProperty()

public getProperty(string $name[, mixed $default = null ]) : mixed
Parameters
$name : string
$default : mixed = null
Return values
mixed

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