Legend of the Green Dragon

PageParts
in package

Table of Contents

$cache  : mixed
$dispatcher  : mixed
$doctrine  : EntityManager
$format  : mixed
$playerFunction  : mixed
$settings  : mixed
$stats  : mixed
$tempStat  : mixed
$translator  : mixed
$twig  : mixed
__construct()  : mixed
charStats()  : array<string|int, mixed>
Returns the current character stats or (if the character isn't logged in) the currently online players Hooks provided: charstats.
getCharStats()  : string
Returns output formatted character stats.
setCache()  : self
setDoctrine()  : self
setTempStat()  : self

Properties

$playerFunction

private mixed $playerFunction

Methods

__construct()

public __construct(Stats $stats, Environment $twig, Format $format, PlayerFunction $playerFunction, Settings $settings, EventDispatcherInterface $dispatcher, TranslatorInterface $translator) : mixed
Parameters
$stats : Stats
$twig : Environment
$format : Format
$playerFunction : PlayerFunction
$settings : Settings
$dispatcher : EventDispatcherInterface
$translator : TranslatorInterface
Return values
mixed

charStats()

Returns the current character stats or (if the character isn't logged in) the currently online players Hooks provided: charstats.

public charStats([bool $return = true ]) : array<string|int, mixed>
Parameters
$return : bool = true
Return values
array<string|int, mixed>

The current stats for this character or the list of online players

getCharStats()

Returns output formatted character stats.

public getCharStats(array<string|int, mixed> $buffs) : string
Parameters
$buffs : array<string|int, mixed>
Return values
string

setCache()

public setCache(CacheInterface $cache) : self
Parameters
$cache : CacheInterface
Tags
required
Return values
self

setDoctrine()

public setDoctrine(EntityManagerInterface $doctrine) : self
Parameters
$doctrine : EntityManagerInterface
Tags
required
Return values
self

setTempStat()

public setTempStat(TempStat $tempStat) : self
Parameters
$tempStat : TempStat
Tags
required
Return values
self

Search results