Class ConvulsiveLungeSystemAI
java.lang.Object
com.fs.starfarer.api.impl.combat.dweller.ConvulsiveLungeSystemAI
- All Implemented Interfaces:
ShipSystemAIScript
The goal of this AI is *not* to make optimal decisions for when to use the system, and the system stats are not
balanced for that. Rather, the goal is to use the system to create predictable/interesting movement behaviors.
- Author:
- Alex
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected CombatEngineAPI
protected ShipwideAIFlags
static float
protected float
static float
static float
protected float
protected float
protected ConvulsiveLungeSystemScript
protected ShipAPI
protected float
protected ShipSystemAPI
protected IntervalUtil
static float
static float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount, org.lwjgl.util.vector.Vector2f missileDangerDir, org.lwjgl.util.vector.Vector2f collisionDangerDir, ShipAPI target) void
giveCommand
(org.lwjgl.util.vector.Vector2f target) void
init
(ShipAPI ship, ShipSystemAPI system, ShipwideAIFlags flags, CombatEngineAPI engine) boolean
-
Field Details
-
HULL_LOSS_FOR_PULLBACK
public static float HULL_LOSS_FOR_PULLBACK -
MAW_LUNGE_ARC
public static float MAW_LUNGE_ARC -
MIN_AGGRO_USE_INTERVAL
public static float MIN_AGGRO_USE_INTERVAL -
USE_SCORE_PER_USE
public static float USE_SCORE_PER_USE -
USE_SCORE_THRESHOLD
public static float USE_SCORE_THRESHOLD -
ship
-
engine
-
flags
-
system
-
script
-
sinceUsedForAttackOrMove
protected float sinceUsedForAttackOrMove -
recentAggroUseScore
protected float recentAggroUseScore -
allowAggroUse
protected boolean allowAggroUse -
tracker
-
hullLevelAtPrevSystemUse
protected float hullLevelAtPrevSystemUse -
prevHardFluxLevel
protected float prevHardFluxLevel
-
-
Constructor Details
-
ConvulsiveLungeSystemAI
public ConvulsiveLungeSystemAI()
-
-
Method Details
-
init
- Specified by:
init
in interfaceShipSystemAIScript
-
advance
public void advance(float amount, org.lwjgl.util.vector.Vector2f missileDangerDir, org.lwjgl.util.vector.Vector2f collisionDangerDir, ShipAPI target) - Specified by:
advance
in interfaceShipSystemAIScript
-
isSystemUsable
public boolean isSystemUsable() -
giveCommand
public void giveCommand(org.lwjgl.util.vector.Vector2f target)