Package com.fs.starfarer.api.impl.combat
Class MoteAIScript
java.lang.Object
com.fs.starfarer.api.impl.combat.MoteAIScript
- All Implemented Interfaces:
MissileAIPlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static float
static float
protected FaderUtil
protected MoteControlScript.SharedMoteAIData
protected float
protected IntervalUtil
protected float
protected List<CombatEntityAPI>
static float
static float
protected MissileAPI
protected List<MissileAPI>
protected float
protected CombatEntityAPI
protected IntervalUtil
protected IntervalUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
advance
(float amount) The AI should do its main work here.void
org.lwjgl.util.vector.Vector2f
protected int
protected boolean
void
render()
void
setTarget
(CombatEntityAPI target) void
-
Field Details
-
MAX_FLOCK_RANGE
public static float MAX_FLOCK_RANGE -
MAX_HARD_AVOID_RANGE
public static float MAX_HARD_AVOID_RANGE -
AVOID_RANGE
public static float AVOID_RANGE -
COHESION_RANGE
public static float COHESION_RANGE -
ATTRACTOR_LOCK_STOP_FLOCKING_ADD
public static float ATTRACTOR_LOCK_STOP_FLOCKING_ADD -
missile
-
tracker
-
updateListTracker
-
missileList
-
hardAvoidList
-
r
protected float r -
target
-
data
-
flutterCheck
-
currFlutter
-
flutterRemaining
protected float flutterRemaining -
elapsed
protected float elapsed
-
-
Constructor Details
-
MoteAIScript
-
-
Method Details
-
updateHardAvoidList
public void updateHardAvoidList() -
doFlocking
public void doFlocking() -
advance
public void advance(float amount) Description copied from interface:MissileAIPlugin
The AI should do its main work here.- Specified by:
advance
in interfaceMissileAIPlugin
-
isTargetValid
protected boolean isTargetValid() -
acquireNewTargetIfNeeded
protected void acquireNewTargetIfNeeded() -
getNumMotesTargeting
-
getAttractorLoc
public org.lwjgl.util.vector.Vector2f getAttractorLoc() -
getTarget
-
setTarget
-
render
public void render()
-