Documentation

MissingCharacter
in package
implements CharacterInterface Uses MockCharacter

Provides a basic implementation of CharacterInterface to return the most important data a missing character might still need.

Interfaces, Classes and Traits

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

Table of Contents

$displayname  : mixed
__call()  : mixed
__construct()  : mixed
Sets the name of the missing character, defautls to "Nobody".
damage()  : mixed
getAttack()  : int
getBuffs()  : BuffList
Returns an empty bufflist.
getDefense()  : int
getDisplayName()  : string
Returns the name.
getHealth()  : int
getId()  : UuidInterface
getLevel()  : int
getMaxHealth()  : int
getName()  : string
Returns the name.
getProperty()  : mixed
getViewpoint()  : Viewpoint
heal()  : mixed
isAlive()  : bool
setHealth()  : mixed

Properties

Methods

__call()

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

__construct()

Sets the name of the missing character, defautls to "Nobody".

public __construct([string $displayname = "Nobody" ]) : mixed
Parameters
$displayname : string = "Nobody"
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

getDisplayName()

Returns the name.

public getDisplayName() : string
Return values
string

getName()

Returns the name.

public getName() : string
Return values
string

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