Package com.fs.starfarer.api.combat
Interface ShipSystemAPI
public interface ShipSystemAPI
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
void
forceState
(ShipSystemAPI.SystemState state, float progress) int
getAmmo()
float
float
float
float
float
float
float
float
float
float
getId()
int
getState()
org.lwjgl.util.vector.Vector2f
boolean
isActive()
boolean
boolean
boolean
boolean
isOn()
boolean
boolean
void
setAmmo
(int ammo) void
setAmmoReloadProgress
(float progress) void
setCooldown
(float cooldown) void
setCooldownRemaining
(float remaining) void
setFluxPerSecond
(float fluxPerSecond) void
setFluxPerUse
(float fluxPerUse)
-
Method Details
-
getId
String getId() -
getCooldownRemaining
float getCooldownRemaining() -
isOutOfAmmo
boolean isOutOfAmmo() -
isActive
boolean isActive()- Returns:
- true if the system is charging up, down, or is on.
-
isCoolingDown
boolean isCoolingDown() -
getAmmo
int getAmmo() -
getFluxPerUse
float getFluxPerUse() -
getFluxPerSecond
float getFluxPerSecond() -
getDisplayName
String getDisplayName() -
isOn
boolean isOn()- Returns:
- true if the system is charging up or is on.
-
isChargeup
boolean isChargeup() -
isChargedown
boolean isChargedown() -
isStateActive
boolean isStateActive() -
getMaxAmmo
int getMaxAmmo() -
setAmmo
void setAmmo(int ammo) -
getEffectLevel
float getEffectLevel() -
getCooldown
float getCooldown() -
setFluxPerUse
void setFluxPerUse(float fluxPerUse) -
setFluxPerSecond
void setFluxPerSecond(float fluxPerSecond) -
getState
ShipSystemAPI.SystemState getState() -
getChargeUpDur
float getChargeUpDur() -
getChargeDownDur
float getChargeDownDur() -
getChargeActiveDur
float getChargeActiveDur() -
getSpecAPI
ShipSystemSpecAPI getSpecAPI() -
deactivate
void deactivate() -
setCooldownRemaining
void setCooldownRemaining(float remaining) -
setCooldown
void setCooldown(float cooldown) -
getTargetLoc
org.lwjgl.util.vector.Vector2f getTargetLoc() -
forceState
-
getAmmoPerSecond
float getAmmoPerSecond() -
getAmmoReloadProgress
float getAmmoReloadProgress() -
setAmmoReloadProgress
void setAmmoReloadProgress(float progress) -
canBeActivated
boolean canBeActivated() -
getScript
ShipSystemStatsScript getScript()
-