1package com.fs.starfarer.api.impl.campaign.ghosts;
3import org.lwjgl.util.vector.Vector2f;
5import com.fs.starfarer.api.Global;
6import com.fs.starfarer.api.campaign.CampaignFleetAPI;
7import com.fs.starfarer.api.campaign.SectorEntityToken;
8import com.fs.starfarer.api.util.Misc;
44 float distAheadOfPlayer = Vector2f.dot(dir, diff);
46 if (distFromPlayer >= goBackThreshold) {
static SectorAPI getSector()
void advance(float amount, SensorGhost ghost)
boolean returningToPlayer
GBLeadPlayerTo(float duration, SectorEntityToken to, float maxDistAhead, int maxBurn)
static float getDistance(SectorEntityToken from, SectorEntityToken to)
static Vector2f getUnitVector(Vector2f from, Vector2f to)
LocationAPI getContainingLocation()
CampaignFleetAPI getPlayerFleet()
LocationAPI getContainingLocation()
void advance(float amount)
CustomCampaignEntityAPI getEntity()
void moveTo(Vector2f dest, float maxBurn)