Legend of the Green Dragon

Movement

Table of Contents

$defended  : mixed
companionDefender()  : void
Movement of Defender Companion.
companionFighter()  : void
Movement of Fighter Companion.
companionHealer()  : void
Movement of Healer companion.
companionMagic()  : void
Movement of Magic Companion.
enemyAiScript()  : mixed
Executes the given script or loads the script and then executes it.
enemyMove()  : void
playerMove()  : void
reportCompanionMove()  : array<string|int, mixed>
Based upon the type of the companion different actions are performed and the companion is marked as "used" after that.
reportEnemyMove()  : bool
Battle: attack of badguy.
reportPlayerMove()  : bool
Battle: attack of player.
reportPowerMove()  : mixed

Properties

$defended

protected mixed $defended = false

Methods

companionDefender()

Movement of Defender Companion.

protected companionDefender(array<string|int, mixed> &$badguy) : void
Parameters
$badguy : array<string|int, mixed>
Return values
void

companionFighter()

Movement of Fighter Companion.

protected companionFighter(array<string|int, mixed> &$badguy) : void
Parameters
$badguy : array<string|int, mixed>
Return values
void

companionHealer()

Movement of Healer companion.

protected companionHealer(array<string|int, mixed> &$badguy) : void
Parameters
$badguy : array<string|int, mixed>
Return values
void

companionMagic()

Movement of Magic Companion.

protected companionMagic(array<string|int, mixed> &$badguy) : void
Parameters
$badguy : array<string|int, mixed>
Return values
void

enemyAiScript()

Executes the given script or loads the script and then executes it.

protected enemyAiScript(array<string|int, mixed> &$badguy) : mixed
Parameters
$badguy : array<string|int, mixed>
Return values
mixed

enemyMove()

protected enemyMove(mixed &$badguy) : void
Parameters
$badguy : mixed
Return values
void

playerMove()

protected playerMove(mixed &$badguy) : void
Parameters
$badguy : mixed
Return values
void

reportCompanionMove()

Based upon the type of the companion different actions are performed and the companion is marked as "used" after that.

protected reportCompanionMove(array<string|int, mixed> &$companion, mixed &$badguy[, string $activate = 'fight' ]) : array<string|int, mixed>
Parameters
$companion : array<string|int, mixed>

The companion itself

$badguy : mixed
$activate : string = 'fight'

The stage of activation. Can be one of these: "fight", "defend", "heal" or "magic".

Return values
array<string|int, mixed>

The changed companion

reportEnemyMove()

Battle: attack of badguy.

protected reportEnemyMove(mixed &$badguy) : bool
Parameters
$badguy : mixed
Return values
bool

reportPlayerMove()

Battle: attack of player.

protected reportPlayerMove(array<string|int, mixed> &$badguy) : bool
Parameters
$badguy : array<string|int, mixed>
Return values
bool

reportPowerMove()

protected reportPowerMove(mixed $crit, mixed $dmg) : mixed
Parameters
$crit : mixed
$dmg : mixed
Return values
mixed

Search results