1package com.fs.starfarer.api.impl.campaign.enc;
3import org.lwjgl.util.vector.Vector2f;
5import com.fs.starfarer.api.Global;
6import com.fs.starfarer.api.campaign.StarSystemAPI;
7import com.fs.starfarer.api.campaign.comm.IntelInfoPlugin;
8import com.fs.starfarer.api.impl.campaign.ids.Tags;
9import com.fs.starfarer.api.impl.campaign.intel.bases.LuddicPathBaseIntel;
10import com.fs.starfarer.api.impl.campaign.intel.bases.PirateBaseIntel;
11import com.fs.starfarer.api.util.Misc;
27 return getClass().getSimpleName();
55 if (base ==
null)
return 0f;
71 float minDist = Float.MAX_VALUE;
86 if (base ==
null)
return 0f;
102 float minDist = Float.MAX_VALUE;
108 if (dist < minDist) {
123 float fullProximityAt = across * 0.5f;
127 if (dist < fullProximityAt) {
137 if (system ==
null)
return 0f;
154 float minDist = Float.MAX_VALUE;
159 if (dist < minDist) {
static SectorAPI getSector()
static float RUINS_RANGE_FOR_FULL_PROXIMITY_FACTOR
static LuddicPathBaseIntel getClosestLuddicPathBase(Vector2f locInHyper, boolean onlyInProximity)
static float getCoreProximityFactor(Vector2f locInHyper)
static float getRuinsProximityFactor(StarSystemAPI system, Vector2f locInHyper)
float getCreatorTimeoutMax()
float getCreatorTimeoutMin()
float getPointTimeoutMax()
static float CORE_PROXIMITY_MAX_RANGE
static float PIRATE_AMBUSH_MAX_RANGE
void createEncounter(EncounterManager manager, EncounterPoint point)
static float getLuddicPathBaseProximityFactor(LuddicPathBaseIntel base, Vector2f locInHyper)
static PirateBaseIntel getClosestPirateBase(Vector2f locInHyper, boolean onlyInProximity)
static float PATHER_AMBUSH_RANGE_FOR_FULL_PROXIMITY_FACTOR
static StarSystemAPI getClosestSystemWithRuins(Vector2f locInHyper, boolean onlyInProximity)
static PirateBaseIntel getClosestPirateBase(Vector2f locInHyper)
static float RUINS_MAX_RANGE
static float PATHER_AMBUSH_MAX_RANGE
float getFrequencyForPoint(EncounterManager manager, EncounterPoint point)
static float getPirateBaseProximityFactor(PirateBaseIntel base, Vector2f locInHyper)
static StarSystemAPI getClosestSystemWithRuins(Vector2f locInHyper)
static LuddicPathBaseIntel getClosestLuddicPathBase(Vector2f locInHyper)
static float PIRATE_AMBUSH_RANGE_FOR_FULL_PROXIMITY_FACTOR
float getPointTimeoutMin()
SectorEntityToken getEntity()
SectorEntityToken getEntity()
static Vector2f getCoreMin()
static float getDistance(SectorEntityToken from, SectorEntityToken to)
static Vector2f getCoreMax()
static Vector2f getCoreCenter()
List< StarSystemAPI > getStarSystems()
IntelManagerAPI getIntelManager()
Vector2f getLocationInHyperspace()
List< IntelInfoPlugin > getIntel()