Legend of the Green Dragon

NewdayController extends AbstractController
in package
Uses DragonPointSpendTrait, NewDayTrait, RecalculateDragonPointTrait, SetRaceTrait, SetSpecialtyTrait

Table of Contents

$battle  : mixed
$buffer  : mixed
$dateTime  : mixed
$dispatcher  : mixed
$log  : mixed
$navigation  : mixed
$response  : mixed
$sanitize  : mixed
$settings  : mixed
$tool  : mixed
$translationDomain  : mixed
$translationDomainNavigation  : mixed
$translator  : mixed
__construct()  : mixed
index()  : Response
setBattle()  : self
setBuffer()  : self
setSanitize()  : self
setTool()  : self
dragonPointSpend()  : mixed
getTranslationDomain()  : string
getTranslationDomainNavigation()  : string
newDay()  : mixed
recalculateDragonPoints()  : void
render()  : Response
setRace()  : mixed
setSpecialty()  : mixed
asignDragonPoints()  : mixed
checkHaunted()  : void
dragonPointsLabels()  : array<string|int, mixed>
generateNewGameDay()  : void
proccessBuffs()  : void
proccessTurns()  : void
resurrection()  : void

Properties

Methods

setBattle()

public setBattle(Battle $battle) : self
Parameters
$battle : Battle
Tags
required
Return values
self

setBuffer()

public setBuffer(Buffer $buffer) : self
Parameters
$buffer : Buffer
Tags
required
Return values
self

setTool()

public setTool(Tool $tool) : self
Parameters
$tool : Tool
Tags
required
Return values
self

dragonPointSpend()

protected dragonPointSpend(array<string|int, mixed> $labels, array<string|int, mixed> &$params, int $dkills, int $dp, array<string|int, mixed> $canbuy, string $resline) : mixed
Parameters
$labels : array<string|int, mixed>
$params : array<string|int, mixed>
$dkills : int
$dp : int
$canbuy : array<string|int, mixed>
$resline : string
Return values
mixed

getTranslationDomain()

protected getTranslationDomain() : string
Return values
string

getTranslationDomainNavigation()

protected getTranslationDomainNavigation() : string
Return values
string

newDay()

protected newDay(array<string|int, mixed> &$params, mixed $resurrection) : mixed
Parameters
$params : array<string|int, mixed>
$resurrection : mixed
Return values
mixed

recalculateDragonPoints()

protected recalculateDragonPoints(array<string|int, mixed> $labels, int &$dp, Request $request) : void
Parameters
$labels : array<string|int, mixed>
$dp : int
$request : Request
Return values
void

render()

protected render(string $template[, array<string|int, mixed> $params = [] ][, Response|null $response = null ]) : Response
Parameters
$template : string
$params : array<string|int, mixed> = []
$response : Response|null = null
Return values
Response

setRace()

protected setRace(Request $request, string $resline) : mixed
Parameters
$request : Request
$resline : string
Return values
mixed

setSpecialty()

protected setSpecialty(Request $request, string $resline) : mixed
Parameters
$request : Request
$resline : string
Return values
mixed

checkHaunted()

private checkHaunted(array<string|int, mixed> &$params, mixed &$turnstoday) : void
Parameters
$params : array<string|int, mixed>
$turnstoday : mixed
Return values
void

dragonPointsLabels()

private dragonPointsLabels() : array<string|int, mixed>
Return values
array<string|int, mixed>

generateNewGameDay()

private generateNewGameDay() : void
Return values
void

proccessBuffs()

private proccessBuffs(array<string|int, mixed> &$params, mixed &$dkff) : void
Parameters
$params : array<string|int, mixed>
$dkff : mixed
Return values
void

proccessTurns()

private proccessTurns(array<string|int, mixed> &$params, mixed &$dkff) : void
Parameters
$params : array<string|int, mixed>
$dkff : mixed
Return values
void

resurrection()

private resurrection(array<string|int, mixed> &$params, mixed &$resurrectionturns, mixed &$spirits, mixed $dkff, mixed $resurrection) : void
Parameters
$params : array<string|int, mixed>
$resurrectionturns : mixed
$spirits : mixed
$dkff : mixed
$resurrection : mixed
Return values
void

Search results