An array containing all the users that have been killed.
public getDeadPlayers ( ) : |
||
return | Users who have been killed. |
public function fire() { $client = $this->client; if (!$this->gameManager->hasGame($this->channel)) { $client->getChannelGroupOrDMByID($this->channel)->then(function (ChannelInterface $channel) use($client) { $client->send(":warning: Aucun jeu en cours", $channel); }); return; } // build list of players $playersList = PlayerListFormatter::format($this->game->getDeadPlayers()); if (empty($playersList)) { $this->gameManager->sendMessageToChannel($this->game, "Personne n'est encore mort."); } else { $this->gameManager->sendMessageToChannel($this->game, ":angel: Joueurs morts: " . $playersList); } }
public function fire() { $client = $this->client; if (!$this->gameManager->hasGame($this->channel)) { $client->getChannelGroupOrDMByID($this->channel)->then(function (ChannelInterface $channel) use($client) { $client->send(":warning: No game in progress.", $channel); }); return; } // build list of players $playersList = PlayerListFormatter::format($this->game->getDeadPlayers()); if (empty($playersList)) { $this->gameManager->sendMessageToChannel($this->game, "No one has died yet."); } else { $this->gameManager->sendMessageToChannel($this->game, ":angel: Players who have died: " . $playersList); } }
public function fire() { $client = $this->client; if (!$this->gameManager->hasGame($this->channel)) { $client->getChannelGroupOrDMByID($this->channel)->then(function (ChannelInterface $channel) use($client) { $client->send(":warning: Что-то пошло не так. Кажется игра не началась.", $channel); }); return; } // build list of players $playersList = PlayerListFormatter::format($this->game->getDeadPlayers()); if (empty($playersList)) { $this->gameManager->sendMessageToChannel($this->game, "Пока все живы."); } else { $this->gameManager->sendMessageToChannel($this->game, ":angel: Они ушли в лучший мир: " . $playersList); } }