public class SustainedBurnAbility extends BaseToggleAbility
| Modifier and Type | Field and Description |
|---|---|
static float |
ACCELERATION_MULT |
static float |
DETECTABILITY_PERCENT |
static float |
MAX_BURN_PERCENT |
static java.lang.String |
SB_NO_SLOW |
static java.lang.String |
SB_NO_STOP |
cooldownLeft, isActivateCooldown, level, turnedOndisableFrames, entity, id, PLAY_UI_SOUNDS_IN_WORLD_SOURCES, spec| Constructor and Description |
|---|
SustainedBurnAbility() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateImpl() |
protected void |
applyEffect(float amount,
float level)
Will be called once when level is 0 and consistently when level >0.
|
protected void |
cleanupImpl() |
void |
createTooltip(TooltipMakerAPI tooltip,
boolean expanded)
Will be called every frame the tooltip is shown, so the tooltip can be dynamic.
|
protected void |
deactivateImpl() |
void |
fleetJoinedBattle(BattleAPI battle) |
void |
fleetLeftBattle(BattleAPI battle,
boolean engagedInHostilities) |
protected java.lang.String |
getActivationText() |
boolean |
hasTooltip() |
boolean |
isUsable()
Whether the ability can be activated / the UI button corresponding to it is enabled.
|
boolean |
showActiveIndicator() |
boolean |
showProgressIndicator() |
activate, addIncompatibleToTooltip, advance, cleanup, deactivate, getActivateCooldownDays, getActivationDays, getCooldownFraction, getCooldownLeft, getDeactivateCooldownDays, getDeactivationDays, getLevel, getLoopSoundUIPitch, getLoopSoundUIVolume, getLoopSoundWorldPitch, getLoopSoundWorldVolume, getProgressFraction, hasCustomButtonPressSounds, isActive, pressButton, runWhilePaused, setCooldownLeftaddIncompatibleToTooltip, 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, showCooldownIndicatorpublic static java.lang.String SB_NO_STOP
public static java.lang.String SB_NO_SLOW
public static float DETECTABILITY_PERCENT
public static float MAX_BURN_PERCENT
public static float ACCELERATION_MULT
public SustainedBurnAbility()
protected java.lang.String getActivationText()
getActivationText in class BaseAbilityPluginprotected void activateImpl()
activateImpl in class BaseToggleAbilityprotected void applyEffect(float amount, float level)
BaseToggleAbilityapplyEffect in class BaseToggleAbilityprotected void deactivateImpl()
deactivateImpl in class BaseToggleAbilityprotected void cleanupImpl()
cleanupImpl in class BaseToggleAbilitypublic boolean showProgressIndicator()
showProgressIndicator in interface AbilityPluginshowProgressIndicator in class BaseToggleAbilitypublic boolean showActiveIndicator()
showActiveIndicator in interface AbilityPluginshowActiveIndicator in class BaseToggleAbilitypublic void createTooltip(TooltipMakerAPI tooltip, boolean expanded)
AbilityPlugincreateTooltip in interface AbilityPlugincreateTooltip in class BaseAbilityPluginpublic boolean isUsable()
AbilityPluginisUsable in interface AbilityPluginisUsable in class BaseToggleAbilitypublic boolean hasTooltip()
hasTooltip in interface AbilityPluginhasTooltip in class BaseAbilityPluginpublic void fleetLeftBattle(BattleAPI battle, boolean engagedInHostilities)
fleetLeftBattle in interface AbilityPluginfleetLeftBattle in class BaseAbilityPluginpublic void fleetJoinedBattle(BattleAPI battle)
fleetJoinedBattle in interface AbilityPluginfleetJoinedBattle in class BaseAbilityPlugin