CharacterInterface
extends
FighterInterface
in
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 —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 —getId()
public
getId() : UuidInterface
Return values
UuidInterface —getLevel()
public
getLevel() : int
Return values
int —getMaxHealth()
public
getMaxHealth() : int
Return values
int —getName()
public
getName() : string
Return values
string —getProperty()
public
getProperty(string $name[, mixed $default = null ]) : mixed
Parameters
- $name : string
- $default : mixed = null
Return values
mixed —getViewpoint()
public
getViewpoint() : mixed
Return values
mixed —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