1package com.fs.starfarer.api.impl.campaign.ghosts.types;
3import java.util.ArrayList;
6import com.fs.starfarer.api.Global;
7import com.fs.starfarer.api.campaign.CampaignFleetAPI;
8import com.fs.starfarer.api.campaign.LocationAPI;
9import com.fs.starfarer.api.campaign.SectorEntityToken;
10import com.fs.starfarer.api.campaign.StarSystemAPI;
11import com.fs.starfarer.api.impl.campaign.ghosts.BaseSensorGhostCreator;
12import com.fs.starfarer.api.impl.campaign.ghosts.GhostFrequencies;
13import com.fs.starfarer.api.impl.campaign.ghosts.SensorGhost;
14import com.fs.starfarer.api.impl.campaign.ghosts.SensorGhostManager;
15import com.fs.starfarer.api.impl.campaign.ids.Tags;
16import com.fs.starfarer.api.util.Misc;
17import com.fs.starfarer.api.util.WeightedRandomPicker;
34 if (curr.isPlayerFleet())
continue;
47 if (score == 0) score = 1f;
51 if (score > 0 && system.getHyperspaceAnchor() !=
null) {
52 picker.
add(system.getHyperspaceAnchor(), score);
65 if (target ==
null)
return null;
67 List<SensorGhost> result =
new ArrayList<SensorGhost>();
static SectorAPI getSector()
boolean isCreationFailed()
static float getGuideFrequency(SensorGhostManager manager)
static float GUIDE_GHOST_RADIUS_LY
float getFrequency(SensorGhostManager manager)
List< SensorGhost > createGhost(SensorGhostManager manager)
static float getDistanceLY(SectorEntityToken from, SectorEntityToken to)
static boolean crossesAnySlipstream(LocationAPI location, Vector2f from, Vector2f to)
List< SectorEntityToken > getEntitiesWithTag(String tag)
CampaignFleetAPI getPlayerFleet()
List< StarSystemAPI > getStarSystems()
LocationAPI getCurrentLocation()
LocationAPI getHyperspace()
Vector2f getLocationInHyperspace()