Class GoDarkAbility
java.lang.Object
com.fs.starfarer.api.impl.campaign.abilities.BaseAbilityPlugin
com.fs.starfarer.api.impl.campaign.abilities.BaseToggleAbility
com.fs.starfarer.api.impl.campaign.abilities.GoDarkAbility
- All Implemented Interfaces:
AbilityPlugin
,EveryFrameScript
-
Field Summary
FieldsFields inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseToggleAbility
cooldownLeft, isActivateCooldown, level, 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
protected String
protected String
boolean
boolean
boolean
Methods inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseToggleAbility
activate, addIncompatibleToTooltip, advance, cleanup, deactivate, getActivateCooldownDays, getActivationDays, getCooldownFraction, getCooldownLeft, getDeactivateCooldownDays, getDeactivationDays, getLevel, getLoopSoundUIPitch, getLoopSoundUIVolume, getLoopSoundWorldPitch, getLoopSoundWorldVolume, getProgressFraction, hasCustomButtonPressSounds, isActive, isUsable, pressButton, runWhilePaused, setCooldownLeft
Methods inherited from class com.fs.starfarer.api.impl.campaign.abilities.BaseAbilityPlugin
addIncompatibleToTooltip, disableIncompatible, fleetJoinedBattle, fleetLeftBattle, fleetOpenedMarket, forceDisable, getActiveColor, getActiveLayers, getCooldownColor, 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, showCooldownIndicator
-
Field Details
-
DETECTABILITY_MULT
public static final float DETECTABILITY_MULT- See Also:
-
-
Constructor Details
-
GoDarkAbility
public GoDarkAbility()
-
-
Method Details
-
getActivationText
- Overrides:
getActivationText
in classBaseAbilityPlugin
-
getDeactivationText
- Overrides:
getDeactivationText
in classBaseAbilityPlugin
-
activateImpl
protected void activateImpl()- Specified by:
activateImpl
in classBaseToggleAbility
-
applyEffect
protected void applyEffect(float amount, float level) Description copied from class:BaseToggleAbility
Will be called once when level is 0 and consistently when level >0.- Specified by:
applyEffect
in classBaseToggleAbility
-
deactivateImpl
protected void deactivateImpl()- Specified by:
deactivateImpl
in classBaseToggleAbility
-
cleanupImpl
protected void cleanupImpl()- Specified by:
cleanupImpl
in classBaseToggleAbility
-
showProgressIndicator
public boolean showProgressIndicator()- Specified by:
showProgressIndicator
in interfaceAbilityPlugin
- Overrides:
showProgressIndicator
in classBaseToggleAbility
-
showActiveIndicator
public boolean showActiveIndicator()- Specified by:
showActiveIndicator
in interfaceAbilityPlugin
- Overrides:
showActiveIndicator
in classBaseToggleAbility
-
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
-