| | |
| | | 'ban' => [ |
| | | 'mira', |
| | | 'jackal' |
| | | ], |
| | | 'score' => [ |
| | | true, |
| | | true |
| | | ] |
| | | |
| | | ], |
| | | 'blue' => [ |
| | | 'name' => 'Kék csapat', |
| | | 'ban' => [ |
| | | 'rook', |
| | | 'blitz' |
| | | ], |
| | | 'score' => [ |
| | | true, |
| | | true |
| | | ] |
| | | ] |
| | | ] |
| | |
| | | private function setSimpleStripe() |
| | | { |
| | | unset($this->state['team']); |
| | | } |
| | | |
| | | public function setScore(string $team, int $number, bool $score) |
| | | { |
| | | $this->state['team'][$team]['score'][$number] = $score; |
| | | } |
| | | |
| | | public function setCup(string $number, string $name) |
| | |
| | | |
| | | public function loadFromArray(array $state) |
| | | { |
| | | |
| | | unset($this->state); |
| | | $this->state = []; |
| | | |
| | | if (!empty($state['team']['orange']['score'][0])) { |
| | | $this->setScore('orange',0,true); |
| | | } |
| | | |
| | | if (!empty($state['team']['orange']['score'][1])) { |
| | | $this->setScore('orange',1,true); |
| | | } |
| | | |
| | | if (!empty($state['team']['blue']['score'][0])) { |
| | | $this->setScore('blue',0,true); |
| | | } |
| | | |
| | | if (!empty($state['team']['blue']['score'][1])) { |
| | | $this->setScore('blue',1,true); |
| | | } |
| | | |
| | | if (!empty($state['stripe']["class"])) |
| | | { |
| | | $this->setClass($state['stripe']["class"]); |