Package com.fs.starfarer.api.combat
Interface ShipAIPlugin
- All Known Implementing Classes:
ShroudedEjectaAI
,ShroudedVortexAI
,ThreatSwarmAI
public interface ShipAIPlugin
-
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) The AI should do its main work here.void
void
When this is called, the AI should immediately evaluate nearby threats and such, if it only does it periodically otherwise.boolean
Only called for fighters, not regular ships or drones.void
setDoNotFireDelay
(float amount) Advise the AI not to fire for amount seconds.default void
setTargetOverride
(ShipAPI target)
-
Method Details
-
setDoNotFireDelay
void setDoNotFireDelay(float amount) Advise the AI not to fire for amount seconds. Used when fighters are taking off from a carrier to prevent bomb/torpedo friendly fire.- Parameters:
amount
-
-
forceCircumstanceEvaluation
void forceCircumstanceEvaluation()When this is called, the AI should immediately evaluate nearby threats and such, if it only does it periodically otherwise. Called when the autopilot is toggled on. -
advance
void advance(float amount) The AI should do its main work here.- Parameters:
amount
-
-
needsRefit
boolean needsRefit()Only called for fighters, not regular ships or drones.- Returns:
- whether the fighter needs refit
-
getAIFlags
ShipwideAIFlags getAIFlags() -
cancelCurrentManeuver
void cancelCurrentManeuver() -
getConfig
ShipAIConfig getConfig() -
setTargetOverride
-