Context
Table of Contents
- $context : mixed
- addContextToBattleEnd() : void
- Add content to battle end info.
- addContextToMessages() : void
- Add messages to context.
- addContextToRoundAlly() : void
- Add content to round for ally (player and companion).
- addContextToRoundEnemy() : void
- Add content to round for enemy.
- getContext() : array<string|int, mixed>
- Get context vars (results and info).
Properties
$context
private
mixed
$context
= ['messages' => [], 'encounter' => [], 'battle_start' => [], 'battle_rounds' => [], 'battle_end' => []]
Methods
addContextToBattleEnd()
Add content to battle end info.
public
addContextToBattleEnd(array<string|int, mixed>|string|null $content) : void
Parameters
- $content : array<string|int, mixed>|string|null
Return values
void —addContextToMessages()
Add messages to context.
public
addContextToMessages(array<string|int, mixed>|string|null $content) : void
Parameters
- $content : array<string|int, mixed>|string|null
Return values
void —addContextToRoundAlly()
Add content to round for ally (player and companion).
public
addContextToRoundAlly(array<string|int, mixed>|string|null $content) : void
Parameters
- $content : array<string|int, mixed>|string|null
Return values
void —addContextToRoundEnemy()
Add content to round for enemy.
public
addContextToRoundEnemy(array<string|int, mixed>|string|null $content) : void
Parameters
- $content : array<string|int, mixed>|string|null
Return values
void —getContext()
Get context vars (results and info).
public
getContext() : array<string|int, mixed>