Class SensorBurstAbility
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.SensorBurstAbility
- All Implemented Interfaces:
AbilityPlugin
,EveryFrameScript
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
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
boolean
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, isUsable, pressButton, runWhilePaused, setActiveDaysLeft, setCooldownLeft, showActiveIndicator, showProgressIndicator
Methods inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseAbilityPlugin
addIncompatibleToTooltip, disableIncompatible, fleetJoinedBattle, fleetLeftBattle, fleetOpenedMarket, forceDisable, getActivationText, 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
-
SENSOR_RANGE_BONUS
public static final float SENSOR_RANGE_BONUS- See Also:
-
DETECTABILITY_RANGE_BONUS
public static final float DETECTABILITY_RANGE_BONUS- See Also:
-
-
Constructor Details
-
SensorBurstAbility
public SensorBurstAbility()
-
-
Method Details
-
activateImpl
protected void activateImpl()- Specified by:
activateImpl
in classBaseDurationAbility
-
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
-
deactivateImpl
protected void deactivateImpl()- Specified by:
deactivateImpl
in classBaseDurationAbility
-
cleanupImpl
protected void cleanupImpl()- Specified by:
cleanupImpl
in classBaseDurationAbility
-
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
-