public class RemoteSurveyAbility extends BaseDurationAbility
Modifier and Type | Field and Description |
---|---|
static float |
ACCELERATION_MULT |
static float |
DETECTABILITY_RANGE_BONUS |
protected boolean |
performed |
static float |
SURVEY_RANGE |
activeDaysLeft, cooldownLeft, fadingOut, level, LOOP_FADE_TIME_DAYS, loopFadeLeft, turnedOn
disableFrames, entity, id, PLAY_UI_SOUNDS_IN_WORLD_SOURCES, spec
Constructor and Description |
---|
RemoteSurveyAbility() |
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() |
protected java.util.List<PlanetAPI> |
getAllPlanetsInRange() |
protected java.util.List<PlanetAPI> |
getSurveyableInRange() |
boolean |
hasTooltip() |
boolean |
isUsable()
Whether the ability can be activated / the UI button corresponding to it is enabled.
|
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
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
public static final float SURVEY_RANGE
public static final float DETECTABILITY_RANGE_BONUS
public static final float ACCELERATION_MULT
protected boolean performed
protected void activateImpl()
activateImpl
in class BaseDurationAbility
protected void applyEffect(float amount, float level)
BaseDurationAbility
applyEffect
in class BaseDurationAbility
public boolean isUsable()
AbilityPlugin
isUsable
in interface AbilityPlugin
isUsable
in class BaseDurationAbility
protected java.util.List<PlanetAPI> getAllPlanetsInRange()
protected java.util.List<PlanetAPI> getSurveyableInRange()
protected void deactivateImpl()
deactivateImpl
in class BaseDurationAbility
protected void cleanupImpl()
cleanupImpl
in class BaseDurationAbility
public void createTooltip(TooltipMakerAPI tooltip, boolean expanded)
AbilityPlugin
createTooltip
in interface AbilityPlugin
createTooltip
in class BaseAbilityPlugin
public boolean hasTooltip()
hasTooltip
in interface AbilityPlugin
hasTooltip
in class BaseAbilityPlugin
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.