public class InterdictionPulseAbility extends BaseDurationAbility
| Modifier and Type | Class and Description |
|---|---|
static class |
InterdictionPulseAbility.IPReactionScript |
| Modifier and Type | Field and Description |
|---|---|
static float |
BASE_RANGE |
static float |
BASE_SECONDS |
static float |
DETECTABILITY_PERCENT |
protected java.lang.Float |
elapsed |
static float |
MAX_EFFECT |
protected java.lang.Integer |
numFired |
protected java.lang.Boolean |
primed |
static float |
STRENGTH_PER_SECOND |
activeDaysLeft, cooldownLeft, fadingOut, level, LOOP_FADE_TIME_DAYS, loopFadeLeft, turnedOndisableFrames, entity, id, PLAY_UI_SOUNDS_IN_WORLD_SOURCES, spec| Constructor and Description |
|---|
InterdictionPulseAbility() |
| 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 |
fleetLeftBattle(BattleAPI battle,
boolean engagedInHostilities) |
void |
fleetOpenedMarket(MarketAPI market)
Only called for the player fleet.
|
protected java.lang.String |
getActivationText() |
static float |
getInterdictSeconds(CampaignFleetAPI fleet,
CampaignFleetAPI other) |
static float |
getRange(CampaignFleetAPI fleet) |
boolean |
hasTooltip() |
boolean |
isUsable()
Whether the ability can be activated / the UI button corresponding to it is enabled.
|
protected void |
showRangePing(float amount) |
activate, addIncompatibleToTooltip, advance, 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, 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 static final float MAX_EFFECT
public static final float BASE_RANGE
public static final float BASE_SECONDS
public static final float STRENGTH_PER_SECOND
public static final float DETECTABILITY_PERCENT
protected java.lang.Boolean primed
protected java.lang.Float elapsed
protected java.lang.Integer numFired
public InterdictionPulseAbility()
public static float getRange(CampaignFleetAPI fleet)
protected java.lang.String getActivationText()
getActivationText in class BaseAbilityPluginprotected void activateImpl()
activateImpl in class BaseDurationAbilityprotected void showRangePing(float amount)
protected void applyEffect(float amount, float level)
BaseDurationAbilityapplyEffect in class BaseDurationAbilitypublic static float getInterdictSeconds(CampaignFleetAPI fleet, CampaignFleetAPI other)
protected void deactivateImpl()
deactivateImpl in class BaseDurationAbilityprotected void cleanupImpl()
cleanupImpl in class BaseDurationAbilitypublic boolean isUsable()
AbilityPluginisUsable in interface AbilityPluginisUsable in class BaseDurationAbilitypublic void createTooltip(TooltipMakerAPI tooltip, boolean expanded)
AbilityPlugincreateTooltip in interface AbilityPlugincreateTooltip in class BaseAbilityPluginpublic boolean hasTooltip()
hasTooltip in interface AbilityPluginhasTooltip in class BaseAbilityPluginpublic void fleetLeftBattle(BattleAPI battle, boolean engagedInHostilities)
fleetLeftBattle in interface AbilityPluginfleetLeftBattle in class BaseAbilityPluginpublic void fleetOpenedMarket(MarketAPI market)
AbilityPluginfleetOpenedMarket in interface AbilityPluginfleetOpenedMarket in class BaseAbilityPlugin