/** * @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 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; }