Documentation

SystemCharacter
in package
implements CharacterInterface Uses MockCharacter

Provides a basic system character to serve as an anonymous user.

Whenever a message should be sent by the System instead of a standard character, this class is returned by the entity containing the message instead of a standard character instance.

Interfaces, Classes and Traits

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

Table of Contents

$characterName  : mixed
$instance  : mixed
__call()  : mixed
damage()  : mixed
getAttack()  : int
getBuffs()  : BuffList
Returns an empty bufflist.
getDefense()  : int
getDisplayName()  : string
getHealth()  : int
getId()  : UuidInterface
getInstance()  : SystemCharacter
Return an instance of SystemCharacter.
getLevel()  : int
getMaxHealth()  : int
getName()  : string
getProperty()  : mixed
getViewpoint()  : Viewpoint
heal()  : mixed
isAlive()  : bool
setHealth()  : mixed
__construct()  : mixed
Private constructor. Use the static method getInstance().

Properties

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

getDisplayName()

public getDisplayName() : string
Tags
inheritDoc
Return values
string

getName()

public getName() : string
Tags
inheritDoc
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

__construct()

Private constructor. Use the static method getInstance().

private __construct() : mixed
Return values
mixed

Search results