Example #1
0
 /**
  * __construct()
  */
 public function __construct()
 {
     $this->_lang = parent::$lang;
     if ($this->is_session_set()) {
         // Get user data and check it
         $this->set_user_data();
         // Check game close
         FunctionsLib::check_server($this->_user_data);
         // Set the changed planet
         $this->set_planet();
         // Get planet data and check it
         $this->set_planet_data();
         // Update resources, ships, defenses & technologies
         UpdateResourcesLib::updateResources($this->_user_data, $this->_planet_data, time());
         // Update buildings queue
         UpdateLib::updateBuildingsQueue($this->_planet_data, $this->_user_data);
     }
 }