Starsector API
Loading...
Searching...
No Matches
ShipEngineControllerAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.combat;
2
3import java.awt.Color;
4import java.util.List;
5
6import org.lwjgl.util.vector.Vector2f;
7
8import com.fs.starfarer.api.util.ColorShifterAPI;
9import com.fs.starfarer.api.util.ValueShifterAPI;
10
11public interface ShipEngineControllerAPI {
12 public interface ShipEngineAPI {
16 Vector2f getLocation();
17
21 boolean isActive();
22
27
28 String getStyleId();
29
30 boolean isDisabled();
31 void disable();
32 void disable(boolean permanent);
33
39
41 void applyDamage(float damAmount, Object source);
43 float getHitpoints();
45
46 void setHitpoints(float hp);
47
49
51
52 void repair();
53 }
54
55
56 boolean isAccelerating();
58 boolean isDecelerating();
59 boolean isTurningLeft();
60 boolean isTurningRight();
61 boolean isStrafingLeft();
62 boolean isStrafingRight();
63
64
65 List<ShipEngineAPI> getShipEngines();
66 void fadeToOtherColor(Object key, Color other, Color contrailColor, float effectLevel, float maxBlend);
67 void extendFlame(Object key, float extendLengthFraction, float extendWidthFraction, float extendGlowFraction);
69 void forceFlameout(boolean suppressFloaty);
73 void computeEffectiveStats(boolean forceShowFloaty);
74 boolean isFlamedOut();
75 boolean isDisabled();
76 boolean isFlamingOut();
77
83 void setFlameLevel(EngineSlotAPI slot, float level);
84 ValueShifterAPI getExtendLengthFraction();
85 ValueShifterAPI getExtendWidthFraction();
86 ValueShifterAPI getExtendGlowFraction();
88 ColorShifterAPI getFlameColorShifter();
90
91}
void computeEffectiveStats(boolean forceShowFloaty)
void setFlameLevel(EngineSlotAPI slot, float level)
void fadeToOtherColor(Object key, Color other, Color contrailColor, float effectLevel, float maxBlend)
void extendFlame(Object key, float extendLengthFraction, float extendWidthFraction, float extendGlowFraction)