Class InterdictionPulseAbility
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.InterdictionPulseAbility
- All Implemented Interfaces:
AbilityPlugin
,EveryFrameScript
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
static final float
static final float
protected Float
static final float
protected Integer
protected Boolean
static final 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
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.protected String
static float
getInterdictSeconds
(CampaignFleetAPI fleet, CampaignFleetAPI other) static float
getRange
(CampaignFleetAPI fleet) boolean
boolean
isUsable()
Whether the ability can be activated / the UI button corresponding to it is enabled.protected void
showRangePing
(float amount) Methods inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseDurationAbility
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, showProgressIndicator
Methods inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseAbilityPlugin
addIncompatibleToTooltip, 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, showCooldownIndicator
-
Field Details
-
MAX_EFFECT
public static final float MAX_EFFECT- See Also:
-
BASE_RANGE
public static final float BASE_RANGE- See Also:
-
BASE_SECONDS
public static final float BASE_SECONDS- See Also:
-
STRENGTH_PER_SECOND
public static final float STRENGTH_PER_SECOND- See Also:
-
DETECTABILITY_PERCENT
public static final float DETECTABILITY_PERCENT- See Also:
-
primed
-
elapsed
-
numFired
-
-
Constructor Details
-
InterdictionPulseAbility
public InterdictionPulseAbility()
-
-
Method Details
-
getRange
-
getActivationText
- Overrides:
getActivationText
in classBaseAbilityPlugin
-
activateImpl
protected void activateImpl()- Specified by:
activateImpl
in classBaseDurationAbility
-
showRangePing
protected void showRangePing(float amount) -
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
-
getInterdictSeconds
-
deactivateImpl
protected void deactivateImpl()- Specified by:
deactivateImpl
in classBaseDurationAbility
-
cleanupImpl
protected void cleanupImpl()- Specified by:
cleanupImpl
in classBaseDurationAbility
-
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:
-
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
-