Phalanx
extends Model
in package
Phalanx Class
Table of Contents
- $db : Database
- Contains the Database instance
- __construct() : mixed
- Constructor
- __destruct() : mixed
- Destructor
- getFleetsToTarget() : array<string|int, mixed>|null
- Get fleets from/to selected planet
- getTargetMoonStatus() : array<string|int, mixed>|null
- Get the current planet moon status
- getTargetPlanetIdAndName() : array<string|int, mixed>
- Get the current planet ID and name
- reduceDeuterium() : void
- Reduce the phalanx cost from the planet
- setNewDb() : void
- Creates a new Database object
Properties
$db
Contains the Database instance
protected
Database
$db
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —__destruct()
Destructor
public
__destruct() : mixed
Return values
mixed —getFleetsToTarget()
Get fleets from/to selected planet
public
getFleetsToTarget(int $galaxy, int $system, int $planet) : array<string|int, mixed>|null
Parameters
- $galaxy : int
- $system : int
- $planet : int
Return values
array<string|int, mixed>|null —getTargetMoonStatus()
Get the current planet moon status
public
getTargetMoonStatus(int $galaxy, int $system, int $planet) : array<string|int, mixed>|null
Parameters
- $galaxy : int
- $system : int
- $planet : int
Return values
array<string|int, mixed>|null —getTargetPlanetIdAndName()
Get the current planet ID and name
public
getTargetPlanetIdAndName(int $galaxy, int $system, int $planet) : array<string|int, mixed>
Parameters
- $galaxy : int
- $system : int
- $planet : int
Return values
array<string|int, mixed> —reduceDeuterium()
Reduce the phalanx cost from the planet
public
reduceDeuterium(int $planet_id) : void
Parameters
- $planet_id : int
Return values
void —setNewDb()
Creates a new Database object
private
setNewDb() : void