Starsector API
Loading...
Searching...
No Matches
com.fs.starfarer.api.combat.ShipAIPlugin Interface Reference

Public Member Functions

void setDoNotFireDelay (float amount)
 
void forceCircumstanceEvaluation ()
 
void advance (float amount)
 
boolean needsRefit ()
 
ShipwideAIFlags getAIFlags ()
 
void cancelCurrentManeuver ()
 
ShipAIConfig getConfig ()
 

Detailed Description

Definition at line 4 of file ShipAIPlugin.java.

Member Function Documentation

◆ advance()

void com.fs.starfarer.api.combat.ShipAIPlugin.advance ( float  amount)

The AI should do its main work here.

Parameters
amount

◆ cancelCurrentManeuver()

void com.fs.starfarer.api.combat.ShipAIPlugin.cancelCurrentManeuver ( )

◆ forceCircumstanceEvaluation()

void com.fs.starfarer.api.combat.ShipAIPlugin.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.

◆ getAIFlags()

ShipwideAIFlags com.fs.starfarer.api.combat.ShipAIPlugin.getAIFlags ( )

◆ getConfig()

ShipAIConfig com.fs.starfarer.api.combat.ShipAIPlugin.getConfig ( )

◆ needsRefit()

boolean com.fs.starfarer.api.combat.ShipAIPlugin.needsRefit ( )

Only called for fighters, not regular ships or drones.

Returns
whether the fighter needs refit

◆ setDoNotFireDelay()

void com.fs.starfarer.api.combat.ShipAIPlugin.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

The documentation for this interface was generated from the following file: