-
- All Implemented Interfaces:
-
com.fs.starfarer.api.combat.ShipAIPlugin
public class CustomShipAI implements ShipAIPlugin
-
-
Field Summary
Fields Modifier and Type Field Description private final ShipAIPluginbaseAIprivate final ShipAPIshipprivate final List<ShipCommandGenerator>commanders
-
Constructor Summary
Constructors Constructor Description CustomShipAI(ShipAIPlugin baseAI, ShipAPI ship, List<ShipCommandGenerator> commanders)
-
Method Summary
Modifier and Type Method Description final ShipAIPlugingetBaseAI()final ShipAPIgetShip()final List<ShipCommandGenerator>getCommanders()final UnitaddFleetingCommand(ShipCommandWrapper cmd)final UnitaddFleetingBlockCommand(ShipCommand cmd)final BooleancontainsFleetingCommand(ShipCommand cmd, Integer index, Vector2f pos)UnitsetDoNotFireDelay(Float p0)UnitforceCircumstanceEvaluation()Unitadvance(Float p0)final UnitadvanceImpl(Float p0)BooleanneedsRefit()ShipwideAIFlagsgetAIFlags()UnitcancelCurrentManeuver()ShipAIConfiggetConfig()-
-
Constructor Detail
-
CustomShipAI
CustomShipAI(ShipAIPlugin baseAI, ShipAPI ship, List<ShipCommandGenerator> commanders)
-
-
Method Detail
-
getBaseAI
final ShipAIPlugin getBaseAI()
-
getShip
final ShipAPI getShip()
-
getCommanders
final List<ShipCommandGenerator> getCommanders()
-
addFleetingCommand
final Unit addFleetingCommand(ShipCommandWrapper cmd)
-
addFleetingBlockCommand
final Unit addFleetingBlockCommand(ShipCommand cmd)
-
containsFleetingCommand
final Boolean containsFleetingCommand(ShipCommand cmd, Integer index, Vector2f pos)
-
setDoNotFireDelay
Unit setDoNotFireDelay(Float p0)
-
forceCircumstanceEvaluation
Unit forceCircumstanceEvaluation()
-
advanceImpl
final Unit advanceImpl(Float p0)
-
needsRefit
Boolean needsRefit()
-
getAIFlags
ShipwideAIFlags getAIFlags()
-
cancelCurrentManeuver
Unit cancelCurrentManeuver()
-
getConfig
ShipAIConfig getConfig()
-
-
-
-