/** * @param integer $type * @param integer $metal * @param integer $crystal * @param integer $deuterium * @param integer $armor * @param integer $shield * @param integer $weapon * @param array $rapidFireFrom * @param array $rapidFireAgainst */ protected function __construct($type, $metal, $crystal, $deuterium, $armor, $shield, $weapon) { parent::__construct($type, $metal, $crystal, $deuterium); $this->ARMOR = $armor; $this->SHIELD = $shield; $this->WEAPON = $weapon; }
/** * @param integer $type * @param integer $metal * @param integer $crystal * @param integer $deuterium * @param integer $energy */ protected function __construct($type, $metal, $crystal, $deuterium, $energy = 0) { parent::__construct($type, $metal, $crystal, $deuterium, $energy); if (is_null($this->power_base_metal)) { $this->power_base_metal = $this->power_base; } if (is_null($this->power_base_crystal)) { $this->power_base_crystal = $this->power_base; } if (is_null($this->power_base_deuterium)) { $this->power_base_deuterium = $this->power_base; } if (is_null($this->power_base_energy)) { $this->power_base_energy = $this->power_base; } }
/** * @param integer $type * @param integer $metal * @param integer $crystal * @param integer $deuterium * @param integer $energy */ protected function __construct($type, $metal, $crystal, $deuterium, $energy = 0) { parent::__construct($type, $metal, $crystal, $deuterium, $energy); }