Documentation

MockCharacter

Provides basic implementation to mock CharacterInterface.

Table of Contents

__call()  : mixed
damage()  : mixed
getAttack()  : int
getBuffs()  : BuffList
Returns an empty bufflist.
getDefense()  : int
getDisplayName()  : string
getHealth()  : int
getId()  : UuidInterface
getLevel()  : int
getMaxHealth()  : int
getName()  : string
getProperty()  : mixed
getViewpoint()  : Viewpoint
heal()  : mixed
isAlive()  : bool
setHealth()  : mixed

Methods

__call()

public __call(mixed $name, mixed $arguments) : mixed
Parameters
$name : mixed
$arguments : mixed
Tags
throws
IsNullException
Return values
mixed

getAttack()

public getAttack([bool $ignoreBuffs = false ]) : int
Parameters
$ignoreBuffs : bool = false
Tags
throws
IsNullException
Return values
int

getDefense()

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

getProperty()

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

heal()

public heal(int $heal[, bool $overheal = false ]) : mixed
Parameters
$heal : int
$overheal : bool = false
Tags
throws
IsNullException
Return values
mixed

Search results