Class EmergencyBurnAbility
java.lang.Object
com.fs.starfarer.api.impl.campaign.abilities.BaseAbilityPlugin
com.fs.starfarer.api.impl.campaign.abilities.BaseDurationAbility
com.fs.starfarer.api.impl.campaign.abilities.EmergencyBurnAbility
- All Implemented Interfaces:
AbilityPlugin
,EveryFrameScript
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static float
static float
static float
static float
static float
static float
Fields inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseDurationAbility
activeDaysLeft, cooldownLeft, fadingOut, level, LOOP_FADE_TIME_DAYS, loopFadeLeft, turnedOn
Fields inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseAbilityPlugin
disableFrames, entity, id, PLAY_UI_SOUNDS_IN_WORLD_SOURCES, spec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
applyEffect
(float amount, float level) Will be called once when level is 0 and consistently when level >0.protected void
protected float
protected float
void
createTooltip
(TooltipMakerAPI tooltip, boolean expanded) Will be called every frame the tooltip is shown, so the tooltip can be dynamic.protected void
void
fleetLeftBattle
(BattleAPI battle, boolean engagedInHostilities) void
fleetOpenedMarket
(MarketAPI market) Only called for the player fleet.float
0 at start of cooldown, 1 at end.static float
getCRCost
(FleetMemberAPI member, CampaignFleetAPI fleet) protected List<FleetMemberAPI>
boolean
boolean
boolean
boolean
isUsable()
Whether the ability can be activated / the UI button corresponding to it is enabled.protected boolean
boolean
Methods inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseDurationAbility
activate, addIncompatibleToTooltip, advance, cleanup, deactivate, getActivationDays, getActiveDaysLeft, getCooldownDays, getCooldownLeft, getDeactivationDays, getDurationDays, getLevel, getLoopSoundUIPitch, getLoopSoundUIVolume, getLoopSoundWorldPitch, getLoopSoundWorldVolume, getProgressFraction, getTotalDurationDays, hasCustomButtonPressSounds, isActive, isFadingOut, isInProgress, pressButton, runWhilePaused, setActiveDaysLeft, setCooldownLeft, showActiveIndicator, showProgressIndicator
Methods inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseAbilityPlugin
addIncompatibleToTooltip, disableIncompatible, fleetJoinedBattle, forceDisable, getActivationText, getActiveColor, getActiveLayers, getDeactivationText, getEntity, getFleet, getId, getInterruptedList, getLoopSoundUI, getLoopSoundWorld, getModId, getOffSoundUI, getOffSoundWorld, getOnSoundUI, getOnSoundWorld, getProgressColor, getSpec, getSpriteName, getTooltipWidth, init, interruptIncompatible, isActiveOrInProgress, isCompatible, isDone, isTooltipExpandable, readResolve, render
-
Field Details
-
SENSOR_RANGE_MULT
public static float SENSOR_RANGE_MULT -
DETECTABILITY_PERCENT
public static float DETECTABILITY_PERCENT -
MAX_BURN_MOD
public static float MAX_BURN_MOD -
CR_COST_MULT
public static float CR_COST_MULT -
FUEL_USE_MULT
public static float FUEL_USE_MULT -
ACCELERATION_MULT
public static float ACCELERATION_MULT -
ACTIVATION_DAMAGE_PROB
public static float ACTIVATION_DAMAGE_PROB
-
-
Constructor Details
-
EmergencyBurnAbility
public EmergencyBurnAbility()
-
-
Method Details
-
activateImpl
protected void activateImpl()- Specified by:
activateImpl
in classBaseDurationAbility
-
applyEffect
protected void applyEffect(float amount, float level) Description copied from class:BaseDurationAbility
Will be called once when level is 0 and consistently when level >0.- Specified by:
applyEffect
in classBaseDurationAbility
-
deactivateImpl
protected void deactivateImpl()- Specified by:
deactivateImpl
in classBaseDurationAbility
-
cleanupImpl
protected void cleanupImpl()- Specified by:
cleanupImpl
in classBaseDurationAbility
-
getNonReadyShips
-
getCRCost
-
computeFuelCost
protected float computeFuelCost() -
computeSupplyCost
protected float computeSupplyCost() -
createTooltip
Description copied from interface:AbilityPlugin
Will be called every frame the tooltip is shown, so the tooltip can be dynamic.- Specified by:
createTooltip
in interfaceAbilityPlugin
- Overrides:
createTooltip
in classBaseAbilityPlugin
-
hasTooltip
public boolean hasTooltip()- Specified by:
hasTooltip
in interfaceAbilityPlugin
- Overrides:
hasTooltip
in classBaseAbilityPlugin
-
fleetLeftBattle
- Specified by:
fleetLeftBattle
in interfaceAbilityPlugin
- Overrides:
fleetLeftBattle
in classBaseAbilityPlugin
-
fleetOpenedMarket
Description copied from interface:AbilityPlugin
Only called for the player fleet.- Specified by:
fleetOpenedMarket
in interfaceAbilityPlugin
- Overrides:
fleetOpenedMarket
in classBaseAbilityPlugin
-
showAlarm
protected boolean showAlarm() -
isUsable
public boolean isUsable()Description copied from interface:AbilityPlugin
Whether the ability can be activated / the UI button corresponding to it is enabled.- Specified by:
isUsable
in interfaceAbilityPlugin
- Overrides:
isUsable
in classBaseDurationAbility
- Returns:
-
getCooldownFraction
public float getCooldownFraction()Description copied from interface:AbilityPlugin
0 at start of cooldown, 1 at end.- Specified by:
getCooldownFraction
in interfaceAbilityPlugin
- Overrides:
getCooldownFraction
in classBaseDurationAbility
- Returns:
-
showCooldownIndicator
public boolean showCooldownIndicator()- Specified by:
showCooldownIndicator
in interfaceAbilityPlugin
- Overrides:
showCooldownIndicator
in classBaseAbilityPlugin
-
isOnCooldown
public boolean isOnCooldown()- Specified by:
isOnCooldown
in interfaceAbilityPlugin
- Overrides:
isOnCooldown
in classBaseAbilityPlugin
-
getCooldownColor
- Specified by:
getCooldownColor
in interfaceAbilityPlugin
- Overrides:
getCooldownColor
in classBaseAbilityPlugin
-
isCooldownRenderingAdditive
public boolean isCooldownRenderingAdditive()- Specified by:
isCooldownRenderingAdditive
in interfaceAbilityPlugin
- Overrides:
isCooldownRenderingAdditive
in classBaseAbilityPlugin
-