Пример #1
0
 /**
  * Génère le JSON des infos visibles
  * @return string
  */
 public function genInfosVisibles()
 {
     if (!$this->visiblesGeres) {
         foreach ($this->getHexas() as $hexa) {
             /** @var Hexa $hexa */
             $this->ajoutVisiblesHexa($hexa);
         }
     }
     return ',"idHexasVisibles":"' . $this->joueur->getVisibles()->getCacheIdHexas() . '"
     ,"qgs":' . $this->qgs->getJSon() . '
     ,"unites":' . $this->unites->getJSon() . '
     ';
 }