Class DEMScript
java.lang.Object
com.fs.starfarer.api.combat.BaseEveryFrameCombatPlugin
com.fs.starfarer.api.impl.combat.dem.DEMScript
- All Implemented Interfaces:
CombatEnginePlugin
,EveryFrameCombatPlugin
,MissileAIPlugin
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float
protected boolean
protected ShipAPI
protected Color
protected boolean
protected float
protected float
protected float
protected boolean
protected int
protected boolean
protected CombatEntityAPI
protected float
protected float
protected MissileAPI
protected DEMScript.ShapedExplosionParams
protected boolean
protected List<org.lwjgl.util.vector.Vector2f>
protected float
protected String
protected float
protected float
protected boolean
protected boolean
protected ShipAPI
protected boolean
protected DEMScript.State
protected float
protected float
protected float
protected List<org.lwjgl.util.vector.Vector2f>
protected String
protected float
protected List<org.lwjgl.util.vector.Vector2f>
protected float
protected float
protected float
protected float
protected float
protected boolean
protected WeaponAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) The AI should do its main work here.void
advance
(float amount, List<InputEventAPI> events) protected void
doMissileControl
(float amount) static float
void
spawnShapedExplosion
(org.lwjgl.util.vector.Vector2f loc, float angle, DEMScript.ShapedExplosionParams p) protected void
updateDroneState
(float amount) Methods inherited from class com.fs.starfarer.api.combat.BaseEveryFrameCombatPlugin
init, processInputPreCoreControls, renderInUICoords, renderInWorldCoords
-
Field Details
-
state
-
missile
-
ship
-
weapon
-
fireTarget
-
demDrone
-
targetingLaserFireOffset
-
targetingLaserSweepAngles
-
payloadSweepAngles
-
payloadSweepPhaseShift
-
minDelayBeforeTriggering
protected float minDelayBeforeTriggering -
useTriggerAngle
protected boolean useTriggerAngle -
triggerAngle
protected float triggerAngle -
allowedDriftFraction
protected float allowedDriftFraction -
triggerDistance
protected float triggerDistance -
turnRateBoost
protected float turnRateBoost -
turnRateMultOnSignal
protected float turnRateMultOnSignal -
targetingLaserArc
protected float targetingLaserArc -
targetingTime
protected float targetingTime -
firingTime
protected float firingTime -
targetingLaserId
-
payloadWeaponId
-
preferredMinFireDistance
protected float preferredMinFireDistance -
preferredMaxFireDistance
protected float preferredMaxFireDistance -
targetingLaserRange
protected float targetingLaserRange -
payloadSweepRateMult
protected float payloadSweepRateMult -
bombPumped
protected boolean bombPumped -
fadeOutEngineWhenFiring
protected boolean fadeOutEngineWhenFiring -
destroyMissleWhenDoneFiring
protected boolean destroyMissleWhenDoneFiring -
randomStrafe
protected boolean randomStrafe -
randomPayloadSweepPhaseShift
protected boolean randomPayloadSweepPhaseShift -
payloadCenterSweepOnOriginalOffset
protected boolean payloadCenterSweepOnOriginalOffset -
snapFacingToTargetIfCloseEnough
protected boolean snapFacingToTargetIfCloseEnough -
destroyedExplosionColor
-
elapsedWaiting
protected float elapsedWaiting -
elapsedTargeting
protected float elapsedTargeting -
elapsedFiring
protected float elapsedFiring -
explosionDelayFrames
protected int explosionDelayFrames -
strafeDur
protected float strafeDur -
strafeDir
protected float strafeDir -
exploded
protected boolean exploded -
p
-
-
Constructor Details
-
DEMScript
-
-
Method Details
-
getValue
-
advance
- Specified by:
advance
in interfaceEveryFrameCombatPlugin
- Overrides:
advance
in classBaseEveryFrameCombatPlugin
-
updateDroneState
protected void updateDroneState(float amount) -
doMissileControl
protected void doMissileControl(float amount) -
advance
public void advance(float amount) Description copied from interface:MissileAIPlugin
The AI should do its main work here.- Specified by:
advance
in interfaceMissileAIPlugin
-
spawnShapedExplosion
public void spawnShapedExplosion(org.lwjgl.util.vector.Vector2f loc, float angle, DEMScript.ShapedExplosionParams p)
-