Documentation

Council
in package

Table of Contents

Properties

$COUNCILS  : array<int, array<int, array<int, int>>>
$PRESIDENTS  : array<int, array<int, int|false>>

Methods

getPresidentPlayerID()  : int|false
Returns the player ID of the President for this race (or false if no President).
getRaceCouncil()  : array<int, int>
Returns an array of player IDs of the Council for this race.
isOnCouncil()  : bool

Properties

$COUNCILS

protected static array<int, array<int, array<int, int>>> $COUNCILS = []

$PRESIDENTS

protected static array<int, array<int, int|false>> $PRESIDENTS = []

Methods

getPresidentPlayerID()

Returns the player ID of the President for this race (or false if no President).

public static getPresidentPlayerID(int $gameID, int $raceID) : int|false
Parameters
$gameID : int
$raceID : int
Return values
int|false

getRaceCouncil()

Returns an array of player IDs of the Council for this race.

public static getRaceCouncil(int $gameID, int $raceID) : array<int, int>
Parameters
$gameID : int
$raceID : int
Return values
array<int, int>

isOnCouncil()

public static isOnCouncil(int $gameID, int $raceID, int $playerID) : bool
Parameters
$gameID : int
$raceID : int
$playerID : int
Return values
bool

        
On this page

Search results