Esempio n. 1
0
 /**
  * @see AbstractFleetEventHandler::getImpactOfiaraMessageData()
  */
 protected function getImpactOfiaraMessageData()
 {
     if ($this->ofiaraID == $this->ownerID) {
         return null;
     }
     return parent::getImpactOfiaraMessageData();
 }
Esempio n. 2
0
 /**
  * @see Fleet::getFleetSet()
  */
 public function getFleetSet($planetID = false)
 {
     $fleetArray = parent::getFleetSet($planetID);
     if (isset($fleetArray[$this->returnTime . $this->fleetID]) && $this->getCancelDuration() || $planetID) {
         unset($fleetArray[$this->returnTime . $this->fleetID]);
     }
     return $fleetArray;
 }
 /**
  * @see FleetEventHandler::comeBack()
  */
 public function comeBack()
 {
     parent::comeBack();
 }
Esempio n. 4
0
 /**
  * @see Fleet::getFleetSet()
  */
 public function getFleetSet($planetID = false)
 {
     $fleetArray = parent::getFleetSet($planetID);
     if ($this->impactTime < time() && isset($fleetArray[$this->impactTime . $this->fleetID])) {
         unset($fleetArray[$this->impactTime . $this->fleetID]);
     }
     if ($this->wakeUpTime >= time() && (!$planetID || $planetID == $this->targetPlanetID)) {
         $fleet = clone $this;
         $fleet->displayTime = $this->wakeUpTime;
         $fleetArray[$this->wakeUpTime . $this->fleetID] = $fleet;
     }
     return $fleetArray;
 }
 /**
  * @see	AbstractFleetEventHandler::getImpactOfiaraMessageData()
  */
 public function getImpactOfiaraMessageData()
 {
     // NavalFormationAttackFleet::getImpactOfiaraMessageData() return null,
     // so we must access AbstractFleetEventHandler::getImpactOfiaraMessageData()
     return AbstractFleetEventHandler::getImpactOfiaraMessageData();
 }
 protected function initArrays()
 {
     parent::initArrays();
     $this->replaces[7] = 'unbesiedelten Planeten ' . $this->name . ' <a href="galaxy.php?g=' . $this->galaxy . '&amp;s=' . $this->system . '" target="Mainframe">[' . $this->galaxy . ':' . $this->system . ':' . $this->planet . ']</a>';
     $this->replaces[8] = '<a href="galaxy.php?g=' . $this->galaxy . '&amp;s=' . $this->system . '" target="Mainframe">[' . $this->galaxy . ':' . $this->system . ':' . $this->planet . ']</a>';
     $this->replaces[12] = '[' . $this->galaxy . ':' . $this->system . ':' . $this->planet . ']';
 }
 /**
  * Saves the missiles
  */
 public function __construct($fleetID = null, $row = null)
 {
     parent::__construct($fleetID, $row);
     $this->attackerMissilesCount = $this->fleet[self::INTERPLANETARY_MISSILE];
 }