Class SustainedBurnAbility
java.lang.Object
com.fs.starfarer.api.impl.campaign.abilities.BaseAbilityPlugin
com.fs.starfarer.api.impl.campaign.abilities.BaseToggleAbility
com.fs.starfarer.api.impl.campaign.abilities.SustainedBurnAbility
- All Implemented Interfaces:
AbilityPlugin
,EveryFrameScript
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static float
static float
static String
static String
Fields inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseToggleAbility
cooldownLeft, isActivateCooldown, level, 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
void
createTooltip
(TooltipMakerAPI tooltip, boolean expanded) Will be called every frame the tooltip is shown, so the tooltip can be dynamic.protected void
void
fleetJoinedBattle
(BattleAPI battle) void
fleetLeftBattle
(BattleAPI battle, boolean engagedInHostilities) protected String
boolean
boolean
isUsable()
Whether the ability can be activated / the UI button corresponding to it is enabled.boolean
boolean
Methods inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseToggleAbility
activate, addIncompatibleToTooltip, advance, cleanup, deactivate, getActivateCooldownDays, getActivationDays, getCooldownFraction, getCooldownLeft, getDeactivateCooldownDays, getDeactivationDays, getLevel, getLoopSoundUIPitch, getLoopSoundUIVolume, getLoopSoundWorldPitch, getLoopSoundWorldVolume, getProgressFraction, hasCustomButtonPressSounds, isActive, pressButton, runWhilePaused, setCooldownLeft
Methods inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseAbilityPlugin
addIncompatibleToTooltip, disableIncompatible, fleetOpenedMarket, forceDisable, getActiveColor, getActiveLayers, getCooldownColor, getDeactivationText, getEntity, getFleet, getId, getInterruptedList, getLoopSoundUI, getLoopSoundWorld, getModId, getOffSoundUI, getOffSoundWorld, getOnSoundUI, getOnSoundWorld, getProgressColor, getSpec, getSpriteName, getTooltipWidth, init, interruptIncompatible, isActiveOrInProgress, isCompatible, isCooldownRenderingAdditive, isDone, isInProgress, isOnCooldown, isTooltipExpandable, readResolve, render, showCooldownIndicator
-
Field Details
-
SB_NO_STOP
-
SB_NO_SLOW
-
DETECTABILITY_PERCENT
public static float DETECTABILITY_PERCENT -
MAX_BURN_PERCENT
public static float MAX_BURN_PERCENT -
ACCELERATION_MULT
public static float ACCELERATION_MULT
-
-
Constructor Details
-
SustainedBurnAbility
public SustainedBurnAbility()
-
-
Method Details
-
getActivationText
- Overrides:
getActivationText
in classBaseAbilityPlugin
-
activateImpl
protected void activateImpl()- Specified by:
activateImpl
in classBaseToggleAbility
-
applyEffect
protected void applyEffect(float amount, float level) Description copied from class:BaseToggleAbility
Will be called once when level is 0 and consistently when level >0.- Specified by:
applyEffect
in classBaseToggleAbility
-
deactivateImpl
protected void deactivateImpl()- Specified by:
deactivateImpl
in classBaseToggleAbility
-
cleanupImpl
protected void cleanupImpl()- Specified by:
cleanupImpl
in classBaseToggleAbility
-
showProgressIndicator
public boolean showProgressIndicator()- Specified by:
showProgressIndicator
in interfaceAbilityPlugin
- Overrides:
showProgressIndicator
in classBaseToggleAbility
-
showActiveIndicator
public boolean showActiveIndicator()- Specified by:
showActiveIndicator
in interfaceAbilityPlugin
- Overrides:
showActiveIndicator
in classBaseToggleAbility
-
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
-
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 classBaseToggleAbility
- Returns:
-
hasTooltip
public boolean hasTooltip()- Specified by:
hasTooltip
in interfaceAbilityPlugin
- Overrides:
hasTooltip
in classBaseAbilityPlugin
-
fleetLeftBattle
- Specified by:
fleetLeftBattle
in interfaceAbilityPlugin
- Overrides:
fleetLeftBattle
in classBaseAbilityPlugin
-
fleetJoinedBattle
- Specified by:
fleetJoinedBattle
in interfaceAbilityPlugin
- Overrides:
fleetJoinedBattle
in classBaseAbilityPlugin
-