| | |
| | | const ROLE_ATTACK = 'att'; |
| | | const ROLE_DEFEND = 'def'; |
| | | |
| | | protected $sites = [ |
| | | protected $maps = [ |
| | | 'Bank' => [ |
| | | 'CEO Office / Executive Lounge', |
| | | 'Open Area / Staff Room', |
| | |
| | | /** |
| | | * @return array |
| | | */ |
| | | public function getSites(): array |
| | | public function getMaps(): array |
| | | { |
| | | return $this->sites; |
| | | return $this->maps; |
| | | } |
| | | |
| | | public function getMapNames() |
| | | { |
| | | return array_keys($this->maps); |
| | | } |
| | | |
| | | /** |
| | |
| | | public function getCurrentMap(): string |
| | | { |
| | | return $this->currentMap; |
| | | } |
| | | |
| | | public function getCurrentSites(): array |
| | | { |
| | | return $this->maps[$this->currentMap]; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | private function validMap($mapName) |
| | | { |
| | | $mapList = array_keys($this->sites); |
| | | $mapList = array_keys($this->maps); |
| | | return in_array($mapName, $mapList); |
| | | } |
| | | |
| | | private function validSite($siteName) |
| | | { |
| | | return in_array($siteName, $this->sites[$this->currentMap]); |
| | | return in_array($siteName, $this->maps[$this->currentMap]); |
| | | } |
| | | |
| | | public function setCurrentMap(string $mapName) |