예제 #1
0
 protected function checkAllies($player)
 {
     if ($this->matchMaker->getNumberOfTeam() > 0) {
         $alliesMax = $this->matchMaker->getPlayersPerMatch() / $this->matchMaker->getNumberOfTeam() - 1;
         //Too many allies
         if (count($this->allyService->get($player->login)) > $alliesMax) {
             $this->gui->ShowTooManyAlliesLabel($player->login, $alliesMax);
         } else {
             $this->gui->eraseTooManyAlliesLabel($player->login);
         }
     }
 }