Méthode |
Description |
|
__construct ( $id, array $users, Slackwolf\Game\RoleStrategy\RoleStrategyInterface $roleStrategy ) |
|
|
addLobbyPlayer ( User $user ) : boolean |
If the lobby is open, adds a user to it. |
|
assignRoles ( ) |
Assigns each user in the game to a role. |
|
changeState ( $state ) |
|
|
clearPlayerVote ( $voterId ) |
|
|
clearVotes ( ) |
|
|
getDeadPlayers ( ) : User[] |
An array containing all the users that have been killed. |
|
getGuardedUserId ( ) : mixed |
|
|
getId ( ) : string |
|
|
getLastGuardedUserId ( ) : mixed |
|
|
getLivingPlayers ( ) : User[] |
An array containing all users that are still alive. |
|
getLobbyPlayers ( ) : User[] |
|
|
getNumRole ( $roleType ) : integer |
|
|
getOriginalNumRole ( $roleType ) : integer |
|
|
getOriginalPlayers ( ) : User[] |
|
|
getOriginalPlayersOfRole ( $roleType ) : User[] |
|
|
getPlayerById ( $id ) : User | boolean |
|
|
getPlayersOfRole ( $roleType ) : User[] |
|
|
getRoleStrategy ( ) : Slackwolf\Game\RoleStrategy\RoleStrategyInterface |
|
|
getState ( ) : integer |
|
|
getVillageTeam ( ) : User[] |
|
|
getVotes ( ) : array |
|
|
getWerewolves ( ) : User[] |
|
|
getWitchHealed ( ) : mixed |
|
|
getWitchHealedUserId ( ) : mixed |
|
|
getWitchHealingPotion ( ) : integer |
|
|
getWitchPoisonPotion ( ) : integer |
|
|
getWitchPoisoned ( ) : mixed |
|
|
getWitchPoisonedUserId ( ) : mixed |
|
|
getWolvesVoted ( ) : mixed |
|
|
hasPlayerVoted ( $voterId ) : boolean |
|
|
isOver ( ) : boolean |
|
|
isPlayerAlive ( $playerId ) : boolean |
Whether or not the player is alive. |
|
killPlayer ( $player_id ) |
Kills the specified player. |
|
removeLobbyPlayer ( $player_id ) : boolean |
Removes a user from the game lobby. |
|
seerSeen ( ) : mixed |
|
|
setDayEnded ( boolean $val ) |
|
|
setGuardedUserId ( $id ) |
|
|
setHunterNeedsToShoot ( boolean $val ) |
|
|
setLastGuardedUserId ( $id ) |
|
|
setNightEnded ( boolean $val ) |
|
|
setSeerSeen ( $seen ) |
|
|
setWitchHealed ( $healed ) |
|
|
setWitchHealedUserId ( $id ) |
|
|
setWitchHealingPotion ( $val ) |
|
|
setWitchPoisonPotion ( $val ) |
|
|
setWitchPoisoned ( $poisoned ) |
|
|
setWitchPoisonedUserId ( $id ) |
|
|
setWolvesVoted ( mixed $wolvesVoted ) |
|
|
vote ( $voterId, $voteForId ) |
|
|
votingFinished ( ) : boolean |
|
|
whoWon ( ) : mixed |
|
|