Package com.fs.starfarer.api.combat
Interface ShipEngineControllerAPI.ShipEngineAPI
- Enclosing interface:
- ShipEngineControllerAPI
public static interface ShipEngineControllerAPI.ShipEngineAPI
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDamage
(float damAmount, Object source) void
disable()
void
disable
(boolean permanent) float
Fraction of total engine power this engine provides.float
org.lwjgl.util.vector.Vector2f
float
boolean
isActive()
boolean
boolean
boolean
void
repair()
void
setHitpoints
(float hp)
-
Method Details
-
getLocation
org.lwjgl.util.vector.Vector2f getLocation()- Returns:
- location, in absolute coordinates.
-
isActive
boolean isActive()- Returns:
- whether this engine is currently engaged (some engines are only "active" when a ship system is in use, for example.)
-
isSystemActivated
boolean isSystemActivated()- Returns:
- whether this engine is only shown when the ship system is active.
-
getStyleId
String getStyleId() -
isDisabled
boolean isDisabled() -
disable
void disable() -
disable
void disable(boolean permanent) -
getContribution
float getContribution()Fraction of total engine power this engine provides.- Returns:
-
isPermanentlyDisabled
boolean isPermanentlyDisabled() -
applyDamage
-
getMaxHitpoints
float getMaxHitpoints() -
getHitpoints
float getHitpoints() -
getEngineSlot
EngineSlotAPI getEngineSlot() -
setHitpoints
void setHitpoints(float hp) -
getEngineColor
Color getEngineColor() -
getContrailColor
Color getContrailColor() -
repair
void repair()
-