public class BaseShipSystemScript extends java.lang.Object implements ShipSystemStatsScriptAdvanced
ShipSystemStatsScript.State, ShipSystemStatsScript.StatusData| Constructor and Description |
|---|
BaseShipSystemScript() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(MutableShipStatsAPI stats,
java.lang.String id,
ShipSystemStatsScript.State state,
float effectLevel) |
float |
getActiveOverride(ShipAPI ship) |
java.lang.String |
getDisplayNameOverride(ShipSystemStatsScript.State state,
float effectLevel) |
java.lang.String |
getInfoText(ShipSystemAPI system,
ShipAPI ship)
If null, uses "READY" and "ACTIVE" as appropritate in the ship info widget.
|
float |
getInOverride(ShipAPI ship) |
float |
getOutOverride(ShipAPI ship) |
float |
getRegenOverride(ShipAPI ship) |
ShipSystemStatsScript.StatusData |
getStatusData(int index,
ShipSystemStatsScript.State state,
float effectLevel) |
int |
getUsesOverride(ShipAPI ship) |
boolean |
isUsable(ShipSystemAPI system,
ShipAPI ship) |
void |
unapply(MutableShipStatsAPI stats,
java.lang.String id) |
public BaseShipSystemScript()
public void apply(MutableShipStatsAPI stats, java.lang.String id, ShipSystemStatsScript.State state, float effectLevel)
apply in interface ShipSystemStatsScriptpublic ShipSystemStatsScript.StatusData getStatusData(int index, ShipSystemStatsScript.State state, float effectLevel)
getStatusData in interface ShipSystemStatsScriptpublic void unapply(MutableShipStatsAPI stats, java.lang.String id)
unapply in interface ShipSystemStatsScriptpublic java.lang.String getInfoText(ShipSystemAPI system, ShipAPI ship)
ShipSystemStatsScriptAdvancedgetInfoText in interface ShipSystemStatsScriptAdvancedpublic boolean isUsable(ShipSystemAPI system, ShipAPI ship)
isUsable in interface ShipSystemStatsScriptAdvancedpublic float getActiveOverride(ShipAPI ship)
getActiveOverride in interface ShipSystemStatsScriptpublic float getInOverride(ShipAPI ship)
getInOverride in interface ShipSystemStatsScriptpublic float getOutOverride(ShipAPI ship)
getOutOverride in interface ShipSystemStatsScriptpublic float getRegenOverride(ShipAPI ship)
getRegenOverride in interface ShipSystemStatsScriptpublic int getUsesOverride(ShipAPI ship)
getUsesOverride in interface ShipSystemStatsScriptpublic java.lang.String getDisplayNameOverride(ShipSystemStatsScript.State state, float effectLevel)
getDisplayNameOverride in interface ShipSystemStatsScript