예제 #1
0
파일: Desk.php 프로젝트: TomAtom/gameoflife
 public function addCell(\Cell $cell)
 {
     if ($this->cellExists($cell->getX(), $cell->getY())) {
         throw new \LogicException('tato bunka j*z na hraci plose existuje');
     }
     $this->cells[$cell->getX()][$cell->getY()] = $cell;
 }