XG Proyect

Shipyard extends Model
in package

Shipyard Class

Table of Contents

$db  : Database
Contains the Database instance
__construct()  : mixed
Constructor
__destruct()  : mixed
Destructor
insertItemsToBuild()  : void
Update the planets table, set the items to build and reduce the resources
setNewDb()  : void
Creates a new Database object

Properties

Methods

__construct()

Constructor

public __construct() : mixed
Return values
mixed

__destruct()

Destructor

public __destruct() : mixed
Return values
mixed

insertItemsToBuild()

Update the planets table, set the items to build and reduce the resources

public insertItemsToBuild(mixed $resources, mixed $shipyard_queue, mixed $planet_id) : void
Parameters
$resources : mixed
$shipyard_queue : mixed
$planet_id : mixed
Return values
void

setNewDb()

Creates a new Database object

private setNewDb() : void
Return values
void

Search results