1package com.fs.starfarer.api.impl.campaign.ghosts;
3import org.lwjgl.util.vector.Vector2f;
5import com.fs.starfarer.api.campaign.SectorEntityToken;
6import com.fs.starfarer.api.util.Misc;
11 protected SectorEntityToken
from;
24 if (
from.getContainingLocation() != ghost.
getEntity().getContainingLocation() || !
from.isAlive()) {
28 super.advance(amount, ghost);
30 Vector2f loc = Misc.getUnitVectorAtDegreeAngle(Misc.getAngleInDegrees(
from.getLocation(), ghost.
getEntity().getLocation()));
32 Vector2f.add(loc, ghost.
getEntity().getLocation(), loc);
void advance(float amount, SensorGhost ghost)
GBGoAwayFrom(float duration, SectorEntityToken from, int maxBurn)
CustomCampaignEntityAPI getEntity()
void moveTo(Vector2f dest, float maxBurn)