XG Proyect

Spy extends Missions
in package

Spy Class

Table of Contents

$combat_caps  : mixed
$lang  : mixed
$missionsModel  : Missions
Contains the model
$objects  : mixed
$pricelist  : mixed
$resource  : mixed
__construct()  : void
Constructor
spyMission()  : void
spyMission
canCompleteMission()  : bool
Check if the mission can be completed
canStartMission()  : bool
Check if the mission can be started
loadLang()  : void
Load a language file using CI Library
makeUpdate()  : void
Update planet resources, ships, and queues
removeFleet()  : void
removeFleet
restoreFleet()  : void
restoreFleet
returnFleet()  : void
returnFleet
storeResources()  : void
storeResources
generateSpyReport()  : void
Spy the target
sendReportToTarget()  : void
Send a report to the target informing that their planet is being spy
setObjectsClass()  : void
setObjectsClass

Properties

$combat_caps

protected mixed $combat_caps

$objects

protected static mixed $objects

Methods

__construct()

Constructor

public __construct() : void
Return values
void

spyMission()

spyMission

public spyMission(mixed $fleet_row) : void
Parameters
$fleet_row : mixed
Return values
void

canCompleteMission()

Check if the mission can be completed

protected canCompleteMission(array<string|int, mixed> $fleet) : bool
Parameters
$fleet : array<string|int, mixed>
Return values
bool

canStartMission()

Check if the mission can be started

protected canStartMission(array<string|int, mixed> $fleet) : bool
Parameters
$fleet : array<string|int, mixed>
Return values
bool

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

makeUpdate()

Update planet resources, ships, and queues

protected makeUpdate(int $galaxy, int $system, int $planet, int $type) : void
Parameters
$galaxy : int

Galaxy

$system : int

System

$planet : int

Planet

$type : int

Planet Type

Return values
void

removeFleet()

removeFleet

protected removeFleet(int $fleet_id) : void
Parameters
$fleet_id : int

Fleed ID

Return values
void

restoreFleet()

restoreFleet

protected restoreFleet(array<string|int, mixed> $fleet_row[, bool $start = true ]) : void
Parameters
$fleet_row : array<string|int, mixed>

Fleet row

$start : bool = true

Start

Return values
void

returnFleet()

returnFleet

protected returnFleet(int $fleet_id) : void
Parameters
$fleet_id : int

Fleed ID

Return values
void

storeResources()

storeResources

protected storeResources(array<string|int, mixed> $fleet_row[, bool $start = false ]) : void
Parameters
$fleet_row : array<string|int, mixed>

Fleet row

$start : bool = false

Start

Return values
void

generateSpyReport()

Spy the target

private generateSpyReport(array<string|int, mixed> $target_data, int $mode, string $report_title) : void
Parameters
$target_data : array<string|int, mixed>
$mode : int
$report_title : string
Return values
void

sendReportToTarget()

Send a report to the target informing that their planet is being spy

private sendReportToTarget(array<string|int, mixed> $fleet, array<string|int, mixed> $user, array<string|int, mixed> $target, int $chances) : void
Parameters
$fleet : array<string|int, mixed>
$user : array<string|int, mixed>
$target : array<string|int, mixed>
$chances : int
Return values
void

setObjectsClass()

setObjectsClass

private setObjectsClass() : void
Return values
void

Search results