1package com.fs.starfarer.api.impl.campaign.procgen.themes;
3import java.util.Random;
5import org.lwjgl.util.vector.Vector2f;
7import com.fs.starfarer.api.EveryFrameScript;
8import com.fs.starfarer.api.Global;
9import com.fs.starfarer.api.campaign.CampaignFleetAPI;
10import com.fs.starfarer.api.campaign.FleetAssignment;
11import com.fs.starfarer.api.campaign.SectorEntityToken;
12import com.fs.starfarer.api.campaign.StarSystemAPI;
13import com.fs.starfarer.api.util.Misc;
34 if ((playerInSameLocation || (
float) Math.random() < 0.1f) &&
source !=
null) {
52 boolean standDown =
source !=
null && (float) Math.random() < 0.2f;
58 float seconds = dist / speed;
60 days += 5f + 5f * (float) Math.random();
64 float days = 5f + 5f * (float) Math.random();
static SectorAPI getSector()
void advance(float amount)
void giveInitialAssignments()
RemnantAssignmentAI(CampaignFleetAPI fleet, StarSystemAPI homeSystem, SectorEntityToken source)
static SectorEntityToken pickEntityToGuard(Random random, StarSystemAPI system, CampaignFleetAPI fleet)
static float getDistance(SectorEntityToken from, SectorEntityToken to)
static Vector2f getPointAtRadius(Vector2f from, float r)
static float getSpeedForBurnLevel(float burnLevel)
GO_TO_LOCATION_AND_DESPAWN
LocationAPI getContainingLocation()
void addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays)
void setLocation(float x, float y)
FleetAssignmentDataAPI getCurrentAssignment()
CampaignClockAPI getClock()
LocationAPI getCurrentLocation()