Legend of the Green Dragon

Code
in package

Table of Contents

$codes  : array<string|int, mixed>
Array with codes format code => html.
$codesSpecialClose  : array<string|int, mixed>
Array with codes format code => html.
$codesSpecialOpen  : array<string|int, mixed>
Array with codes format code => html.
addCodes()  : $this
Add more codes to game.
addCodesSpecialClose()  : $this
Add more special codes to game.
addCodesSpecialOpen()  : $this
Add more special codes to game.
getCodes()  : array<string|int, mixed>
Get array of codes.
getCodesSpecialClose()  : array<string|int, mixed>
Get array of codes.
getCodesSpecialOpen()  : array<string|int, mixed>
Get array of codes.
setCodes()  : $this
Remplace original game codes.
setCodesSpecialClose()  : $this
Remplace original game special codes.
setCodesSpecialOpen()  : $this
Remplace original game special codes.

Properties

$codes

Array with codes format code => html.

protected array<string|int, mixed> $codes = ['b' => 'b', 'B' => 'strong', 'i' => 'em']

$codesSpecialClose

Array with codes format code => html.

protected array<string|int, mixed> $codesSpecialClose = ['´c' => '</div>', '´H' => '</span>', '`n' => '<br>', '`0' => '</span>', '´0' => '</span>']

$codesSpecialOpen

Array with codes format code => html.

protected array<string|int, mixed> $codesSpecialOpen = ['`c' => '<div class="text-center">', '`H' => '<span class="navhi">']

Methods

addCodes()

Add more codes to game.

public addCodes(array<string|int, mixed> $codes) : $this
Parameters
$codes : array<string|int, mixed>
Return values
$this

addCodesSpecialClose()

Add more special codes to game.

public addCodesSpecialClose(array<string|int, mixed> $codes) : $this
Parameters
$codes : array<string|int, mixed>
Return values
$this

addCodesSpecialOpen()

Add more special codes to game.

public addCodesSpecialOpen(array<string|int, mixed> $codes) : $this
Parameters
$codes : array<string|int, mixed>
Return values
$this

getCodes()

Get array of codes.

public getCodes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCodesSpecialClose()

Get array of codes.

public getCodesSpecialClose() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCodesSpecialOpen()

Get array of codes.

public getCodesSpecialOpen() : array<string|int, mixed>
Return values
array<string|int, mixed>

setCodes()

Remplace original game codes.

public setCodes(array<string|int, mixed> $codes) : $this
Parameters
$codes : array<string|int, mixed>
Return values
$this

setCodesSpecialClose()

Remplace original game special codes.

public setCodesSpecialClose(array<string|int, mixed> $codes) : $this
Parameters
$codes : array<string|int, mixed>
Return values
$this

setCodesSpecialOpen()

Remplace original game special codes.

public setCodesSpecialOpen(array<string|int, mixed> $codes) : $this
Parameters
$codes : array<string|int, mixed>
Return values
$this

Search results