XG Proyect

GalaxyLib extends XGPCore
in package

GalaxyLib class

Table of Contents

DEBRIS_TYPE  = 2
MOON_TYPE  = 3
PLANET_TYPE  = 1
$lang  : mixed
$objects  : mixed
$current_planet  : mixed
$current_user  : mixed
$galaxy  : mixed
$langs  : mixed
$no_popup  : bool
Indicates if we should display the popup or not
$noob  : mixed
$planet  : mixed
$pricelist  : mixed
$resource  : mixed
$row_data  : mixed
$system  : mixed
$template  : mixed
__construct()  : void
__construct
buildRow()  : array<string|int, mixed>
buildRow
loadLang()  : void
Load a language file using CI Library
actionsBlock()  : string
actionsBlock
allyBlock()  : string
allyBlock
attackLink()  : string
attackLink
debrisBlock()  : array<string|int, mixed>
debrisBlock
deployLink()  : string
deployLink
destroyLink()  : string
destroyLink
getUserStatusClass()  : void
Get the css class for each user status
holdPositionLink()  : string
holdPositionLink
isFriendly()  : bool
Check if it is a friendly (buddy or alliance)
isInRange()  : bool
isInRange
isMissileActive()  : bool
isMissileActive
isPhalanxActive()  : bool
isPhalanxActive
missileLink()  : string
missileLink
moonBlock()  : array<string|int, mixed>
moonBlock
phalanxLink()  : string
phalanxLink
planetBlock()  : array<string|int, mixed>
planetBlock
planetNameBlock()  : void
planetNameBlock
setObjectsClass()  : void
setObjectsClass
setTemplate()  : void
Set template object
spyLink()  : string
spyLink
transportLink()  : string
transportLink
usernameBlock()  : array<string|int, mixed>
usernameBlock

Constants

Properties

$objects

protected static mixed $objects

$current_planet

private mixed $current_planet

$no_popup

Indicates if we should display the popup or not

private bool $no_popup = false

Methods

__construct()

__construct

public __construct([array<string|int, mixed> $user = '' ][, array<string|int, mixed> $planet = '' ][, int $galaxy = '' ][, int $system = '' ][, mixed $langs = '' ]) : void
Parameters
$user : array<string|int, mixed> = ''

User

$planet : array<string|int, mixed> = ''

Planet

$galaxy : int = ''

Galaxy

$system : int = ''

System

$langs : mixed = ''
Return values
void

buildRow()

buildRow

public buildRow(array<string|int, mixed> $row_data, array<string|int, mixed> $planet) : array<string|int, mixed>
Parameters
$row_data : array<string|int, mixed>

Row data

$planet : array<string|int, mixed>

Planet

Return values
array<string|int, mixed>

loadLang()

Load a language file using CI Library

protected loadLang(string|array<string|int, mixed> $language_file) : void
Parameters
$language_file : string|array<string|int, mixed>
Return values
void

actionsBlock()

actionsBlock

private actionsBlock() : string
Return values
string

allyBlock()

allyBlock

private allyBlock() : string
Return values
string

attackLink

private attackLink(string $planet_type) : string
Parameters
$planet_type : string

Planet type

Return values
string

debrisBlock()

debrisBlock

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

deployLink

private deployLink(string $planet_type) : string
Parameters
$planet_type : string

Planet type

Return values
string

destroyLink

private destroyLink(string $planet_type) : string
Parameters
$planet_type : string

Planet type

Return values
string

getUserStatusClass()

Get the css class for each user status

private getUserStatusClass(string $status) : void
Parameters
$status : string
Return values
void

holdPositionLink

private holdPositionLink(string $planet_type) : string
Parameters
$planet_type : string

Planet type

Return values
string

isFriendly()

Check if it is a friendly (buddy or alliance)

private isFriendly() : bool
Return values
bool

isInRange()

isInRange

private isInRange(int $range) : bool
Parameters
$range : int

Range

Return values
bool

isMissileActive()

isMissileActive

private isMissileActive() : bool
Return values
bool

isPhalanxActive()

isPhalanxActive

private isPhalanxActive() : bool
Return values
bool

missileLink

private missileLink(string $planet_type) : string
Parameters
$planet_type : string

Planet type

Return values
string

moonBlock()

moonBlock

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

phalanxLink

private phalanxLink(string $planet_type) : string
Parameters
$planet_type : string

Planet type

Return values
string

planetBlock()

planetBlock

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

planetNameBlock()

planetNameBlock

private planetNameBlock() : void
Return values
void

setObjectsClass()

setObjectsClass

private setObjectsClass() : void
Return values
void

setTemplate()

Set template object

private setTemplate() : void
Return values
void

spyLink

private spyLink(string $planet_type) : string
Parameters
$planet_type : string

Planet type

Return values
string

transportLink

private transportLink(string $planet_type) : string
Parameters
$planet_type : string

Planet type

Return values
string

usernameBlock()

usernameBlock

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

Search results