Starsector API
Loading...
Searching...
No Matches
ShipEngineControllerAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.combat;
2
3import java.util.List;
4
5import java.awt.Color;
6
7import org.lwjgl.util.vector.Vector2f;
8
9import com.fs.starfarer.api.util.ColorShifterAPI;
10import com.fs.starfarer.api.util.ValueShifterAPI;
11
12public interface ShipEngineControllerAPI {
13 public interface ShipEngineAPI {
17 Vector2f getLocation();
18
22 boolean isActive();
23
28
29 String getStyleId();
30
31 boolean isDisabled();
32 void disable();
33 void disable(boolean permanent);
34
40
42 void applyDamage(float damAmount, Object source);
44 float getHitpoints();
46
47 void setHitpoints(float hp);
48
50
52
53 void repair();
54 }
55
56
57 boolean isAccelerating();
59 boolean isDecelerating();
60 boolean isTurningLeft();
61 boolean isTurningRight();
62 boolean isStrafingLeft();
63 boolean isStrafingRight();
64 boolean isIdle();
65
66 List<ShipEngineAPI> getShipEngines();
67 void fadeToOtherColor(Object key, Color other, Color contrailColor, float effectLevel, float maxBlend);
68 void extendFlame(Object key, float extendLengthFraction, float extendWidthFraction, float extendGlowFraction);
70 void forceFlameout(boolean suppressFloaty);
74 void computeEffectiveStats(boolean forceShowFloaty);
75 boolean isFlamedOut();
76 boolean isDisabled();
77 boolean isFlamingOut();
78
84 void setFlameLevel(EngineSlotAPI slot, float level);
91
92
93}
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)