Starsector API
Loading...
Searching...
No Matches
com.fs.starfarer.api.combat.ShipAIPlugin Interface Reference
Inheritance diagram for com.fs.starfarer.api.combat.ShipAIPlugin:
[legend]

Public Member Functions

void setDoNotFireDelay (float amount)
 
void forceCircumstanceEvaluation ()
 
void advance (float amount)
 
boolean needsRefit ()
 
ShipwideAIFlags getAIFlags ()
 
void cancelCurrentManeuver ()
 
ShipAIConfig getConfig ()
 
default void setTargetOverride (ShipAPI target)
 

Detailed Description

Definition at line 4 of file ShipAIPlugin.java.

Member Function Documentation

◆ advance()

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

◆ 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.

Implemented in com.fs.starfarer.api.impl.combat.dweller.ShroudedEjectaAI, com.fs.starfarer.api.impl.combat.dweller.ShroudedVortexAI, and com.fs.starfarer.api.impl.combat.threat.ThreatSwarmAI.

◆ getAIFlags()

◆ 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

Implemented in com.fs.starfarer.api.impl.combat.dweller.ShroudedEjectaAI, com.fs.starfarer.api.impl.combat.dweller.ShroudedVortexAI, and com.fs.starfarer.api.impl.combat.threat.ThreatSwarmAI.

◆ 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

Implemented in com.fs.starfarer.api.impl.combat.dweller.ShroudedEjectaAI, com.fs.starfarer.api.impl.combat.dweller.ShroudedVortexAI, and com.fs.starfarer.api.impl.combat.threat.ThreatSwarmAI.

◆ setTargetOverride()

default void com.fs.starfarer.api.combat.ShipAIPlugin.setTargetOverride ( ShipAPI target)

Definition at line 40 of file ShipAIPlugin.java.


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