Exemplo n.º 1
0
 /**
  * @return integer
  */
 public function getCrystal()
 {
     return $this->_resources->getCrystal();
 }
Exemplo n.º 2
0
 /**
  * @param Resources $resources
  * @return Resources
  */
 public function add(Resources $resources)
 {
     $this->metal += $resources->getMetal();
     $this->crystal += $resources->getCrystal();
     $this->deuterium += $resources->getDeuterium();
     $this->energy += $resources->getEnergy();
     return $this;
 }