Package com.fs.starfarer.api.combat
Interface ShipEngineControllerAPI
public interface ShipEngineControllerAPI
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfloat
void
computeEffectiveStats
(boolean forceShowFloaty) void
extendFlame
(Object key, float extendLengthFraction, float extendWidthFraction, float extendGlowFraction) void
fadeToOtherColor
(Object key, Color other, Color contrailColor, float effectLevel, float maxBlend) void
void
forceFlameout
(boolean suppressFloaty) void
float
float
float
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isIdle()
boolean
boolean
boolean
boolean
void
setFlameLevel
(EngineSlotAPI slot, float level) How extended the engine flame is.
-
Method Details
-
isAccelerating
boolean isAccelerating() -
isAcceleratingBackwards
boolean isAcceleratingBackwards() -
isDecelerating
boolean isDecelerating() -
isTurningLeft
boolean isTurningLeft() -
isTurningRight
boolean isTurningRight() -
isStrafingLeft
boolean isStrafingLeft() -
isStrafingRight
boolean isStrafingRight() -
isIdle
boolean isIdle() -
getShipEngines
List<ShipEngineControllerAPI.ShipEngineAPI> getShipEngines() -
fadeToOtherColor
-
extendFlame
void extendFlame(Object key, float extendLengthFraction, float extendWidthFraction, float extendGlowFraction) -
forceFlameout
void forceFlameout() -
forceFlameout
void forceFlameout(boolean suppressFloaty) -
getMaxSpeedWithoutBoost
float getMaxSpeedWithoutBoost() -
computeDisabledFraction
float computeDisabledFraction() -
getFlameoutFraction
float getFlameoutFraction() -
computeEffectiveStats
void computeEffectiveStats(boolean forceShowFloaty) -
isFlamedOut
boolean isFlamedOut() -
isDisabled
boolean isDisabled() -
isFlamingOut
boolean isFlamingOut() -
setFlameLevel
How extended the engine flame is. 1.0 = maximum, 0 = not at all, 0.4 = default idle level.- Parameters:
slot
-level
-
-
getExtendLengthFraction
ValueShifterAPI getExtendLengthFraction() -
getExtendWidthFraction
ValueShifterAPI getExtendWidthFraction() -
getExtendGlowFraction
ValueShifterAPI getExtendGlowFraction() -
forceShowAccelerating
void forceShowAccelerating() -
getFlameColorShifter
ColorShifterAPI getFlameColorShifter() -
getTurnDeceleration
float getTurnDeceleration()
-