1package com.fs.starfarer.api.impl.campaign.world;
5import org.lwjgl.util.vector.Vector2f;
7import com.fs.starfarer.api.campaign.CampaignFleetAPI;
8import com.fs.starfarer.api.campaign.FleetAssignment;
9import com.fs.starfarer.api.campaign.SectorEntityToken;
10import com.fs.starfarer.api.campaign.ai.CampaignFleetAIAPI;
11import com.fs.starfarer.api.campaign.ai.ModularFleetAIAPI;
12import com.fs.starfarer.api.impl.campaign.procgen.themes.BaseAssignmentAI;
13import com.fs.starfarer.api.util.IntervalUtil;
14import com.fs.starfarer.api.util.Misc;
19 protected float dur = 30f + (float) Math.random() * 20f;
44 super.advance(amount);
76 float dur = 1f + 2f * (float) Math.random();
78 float size = 3f + (float) Math.random() * 5f;
80 Color color =
new Color(255,100,255,175);
84 vel.scale(5f + (
float) Math.random() * 10f);
void giveInitialAssignments()
SectorEntityToken toGuard
ZigLeashAssignmentAI(CampaignFleetAPI fleet, SectorEntityToken toGuard)
void advance(float amount)
static void spawnMote(SectorEntityToken from)
void advance(float amount)
static Vector2f getUnitVectorAtDegreeAngle(float degrees)
static float getDistance(SectorEntityToken from, SectorEntityToken to)
static float getDays(float amount)
static Vector2f getPointWithinRadius(Vector2f from, float r)
static ParticleControllerAPI[] addGlowyParticle(LocationAPI location, Vector2f loc, Vector2f vel, float size, float rampUp, float dur, Color color)
CampaignFleetAIAPI getAI()
void addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays)
void addAssignmentAtStart(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays, String actionText, Script onCompletion)
LocationAPI getContainingLocation()
boolean isInCurrentLocation()
FleetAssignment getCurrentAssignmentType()
TacticalModulePlugin getTacticalModule()
StrategicModulePlugin getStrategicModule()
TimeoutTracker< SectorEntityToken > getDoNotAttack()
SectorEntityToken getTarget()
void setTarget(SectorEntityToken target)