Property | Type | Description | |
---|---|---|---|
$optionsManager |
Method | Description | |
---|---|---|
__construct ( |
Defines the GameManager constructor. | |
changeGameState ( $gameId, $newGameState ) | ||
endGame ( $id, null $enderUserId = null ) | ||
getGame ( $id ) : |
||
hasGame ( $id ) : boolean | ||
input ( |
||
newGame ( $id, array $users, $roleStrategy ) | ||
sendMessageToChannel ( |
Sends a message to a game. | |
startGame ( $id ) | ||
vote ( |
Method | Description | |
---|---|---|
addGame ( |
||
onDay ( |
||
onFirstNight ( |
||
onGameOver ( |
||
onNight ( |
||
onNightEnd ( |
public __construct ( |
||
$client | ||
$commandBindings | array |
public changeGameState ( $gameId, $newGameState ) | ||
$gameId | ||
$newGameState |
public sendMessageToChannel ( |
||
$game | The game to send the message. | |
$msg | The message. |
public vote ( |
||
$game | ||
$voterId | ||
$voteForId |