Exemple #1
0
 /**
  * Places given hex on the board.
  * @param array|Hex $data
  * @param array $coords
  */
 public function placeHex($data, $coords)
 {
     if (is_array($data)) {
         $hex = Hex::create($data);
     } else {
         $hex = $data;
     }
     $hex->setXY($coords);
     $this->getHexes()->add($hex);
 }