public class ShroudedEjectaAI extends java.lang.Object implements ShipAIPlugin
| Modifier and Type | Class and Description |
|---|---|
static class |
ShroudedEjectaAI.FlockingData |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
exploded |
protected ShipwideAIFlags |
flags |
static float |
HULL_FRACTION_LOST_PER_SECOND
Loses hitpoints over time and eventually dissipates.
|
protected ShipAPI |
ship |
protected float |
turnDir |
protected IntervalUtil |
updateInterval |
| Constructor and Description |
|---|
ShroudedEjectaAI(ShipAPI ship) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(float amount)
The AI should do its main work here.
|
void |
cancelCurrentManeuver() |
protected void |
doInitialSetup() |
void |
forceCircumstanceEvaluation()
When this is called, the AI should immediately evaluate nearby threats and such,
if it only does it periodically otherwise.
|
ShipwideAIFlags |
getAIFlags() |
ShipAIConfig |
getConfig() |
protected void |
giveMovementCommands() |
boolean |
needsRefit()
Only called for fighters, not regular ships or drones.
|
void |
setDoNotFireDelay(float amount)
Advise the AI not to fire for amount seconds.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetTargetOverridepublic static float HULL_FRACTION_LOST_PER_SECOND
protected ShipwideAIFlags flags
protected boolean exploded
protected float turnDir
protected IntervalUtil updateInterval
public ShroudedEjectaAI(ShipAPI ship)
protected void doInitialSetup()
public void advance(float amount)
ShipAIPluginadvance in interface ShipAIPluginprotected void giveMovementCommands()
public ShipwideAIFlags getAIFlags()
getAIFlags in interface ShipAIPluginpublic void setDoNotFireDelay(float amount)
ShipAIPluginsetDoNotFireDelay in interface ShipAIPluginpublic void forceCircumstanceEvaluation()
ShipAIPluginforceCircumstanceEvaluation in interface ShipAIPluginpublic boolean needsRefit()
ShipAIPluginneedsRefit in interface ShipAIPluginpublic void cancelCurrentManeuver()
cancelCurrentManeuver in interface ShipAIPluginpublic ShipAIConfig getConfig()
getConfig in interface ShipAIPlugin