public class ScavengeAbility extends BaseDurationAbility
activeDaysLeft, cooldownLeft, fadingOut, level, LOOP_FADE_TIME_DAYS, loopFadeLeft, turnedOndisableFrames, entity, id, PLAY_UI_SOUNDS_IN_WORLD_SOURCES, spec| Constructor and Description |
|---|
ScavengeAbility() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateImpl() |
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
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() |
protected java.lang.String |
getActivationText() |
protected DebrisFieldTerrainPlugin |
getDebrisField() |
boolean |
hasTooltip() |
boolean |
isUsable()
Whether the ability can be activated / the UI button corresponding to it is enabled.
|
activate, addIncompatibleToTooltip, cleanup, deactivate, getActivationDays, getActiveDaysLeft, getCooldownDays, getCooldownFraction, getCooldownLeft, getDeactivationDays, getDurationDays, getLevel, getLoopSoundUIPitch, getLoopSoundUIVolume, getLoopSoundWorldPitch, getLoopSoundWorldVolume, getProgressFraction, getTotalDurationDays, hasCustomButtonPressSounds, isActive, isFadingOut, isInProgress, pressButton, runWhilePaused, setActiveDaysLeft, setCooldownLeft, showActiveIndicator, showProgressIndicatoraddIncompatibleToTooltip, disableIncompatible, fleetJoinedBattle, fleetLeftBattle, 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, isOnCooldown, isTooltipExpandable, readResolve, render, showCooldownIndicatorpublic ScavengeAbility()
protected java.lang.String getActivationText()
getActivationText in class BaseAbilityPluginprotected void activateImpl()
activateImpl in class BaseDurationAbilitypublic void advance(float amount)
EveryFrameScriptadvance in interface EveryFrameScriptadvance in class BaseDurationAbilityamount - seconds elapsed during the last frame.protected void applyEffect(float amount, float level)
BaseDurationAbilityapplyEffect in class BaseDurationAbilityprotected void deactivateImpl()
deactivateImpl in class BaseDurationAbilityprotected void cleanupImpl()
cleanupImpl in class BaseDurationAbilitypublic boolean isUsable()
AbilityPluginisUsable in interface AbilityPluginisUsable in class BaseDurationAbilityprotected DebrisFieldTerrainPlugin getDebrisField()
public void createTooltip(TooltipMakerAPI tooltip, boolean expanded)
AbilityPlugincreateTooltip in interface AbilityPlugincreateTooltip in class BaseAbilityPluginpublic boolean hasTooltip()
hasTooltip in interface AbilityPluginhasTooltip in class BaseAbilityPlugin