public class GraviticScanAbility extends BaseToggleAbility
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMMODITY_ID |
static float |
COMMODITY_PER_DAY |
protected GraviticScanData |
data |
static float |
DETECTABILITY_PERCENT |
protected float |
phaseAngle |
static float |
SLIPSTREAM_DETECTION_RANGE |
protected SpriteAPI |
texture |
cooldownLeft, isActivateCooldown, level, turnedOndisableFrames, entity, id, PLAY_UI_SOUNDS_IN_WORLD_SOURCES, spec| Constructor and Description |
|---|
GraviticScanAbility() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateImpl() |
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
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.lang.String |
getActivationText() |
java.util.EnumSet<CampaignEngineLayers> |
getActiveLayers() |
CommoditySpecAPI |
getCommodity() |
protected java.lang.String |
getDeactivationText() |
float |
getRingRadius() |
boolean |
hasTooltip() |
boolean |
isUsable()
Whether the ability can be activated / the UI button corresponding to it is enabled.
|
void |
render(CampaignEngineLayers layer,
ViewportAPI viewport) |
boolean |
showActiveIndicator() |
boolean |
showProgressIndicator() |
activate, addIncompatibleToTooltip, cleanup, deactivate, getActivateCooldownDays, getActivationDays, getCooldownFraction, getCooldownLeft, getDeactivateCooldownDays, getDeactivationDays, getLevel, getLoopSoundUIPitch, getLoopSoundUIVolume, getLoopSoundWorldPitch, getLoopSoundWorldVolume, getProgressFraction, hasCustomButtonPressSounds, isActive, pressButton, runWhilePaused, setCooldownLeftaddIncompatibleToTooltip, disableIncompatible, fleetJoinedBattle, fleetLeftBattle, fleetOpenedMarket, forceDisable, getActiveColor, 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, showCooldownIndicatorpublic static float SLIPSTREAM_DETECTION_RANGE
public static java.lang.String COMMODITY_ID
public static float COMMODITY_PER_DAY
public static float DETECTABILITY_PERCENT
protected float phaseAngle
protected GraviticScanData data
public GraviticScanAbility()
protected java.lang.String getActivationText()
getActivationText in class BaseAbilityPluginprotected java.lang.String getDeactivationText()
getDeactivationText in class BaseAbilityPluginprotected void activateImpl()
activateImpl in class BaseToggleAbilitypublic boolean showProgressIndicator()
showProgressIndicator in interface AbilityPluginshowProgressIndicator in class BaseToggleAbilitypublic boolean showActiveIndicator()
showActiveIndicator in interface AbilityPluginshowActiveIndicator in class BaseToggleAbilitypublic void createTooltip(TooltipMakerAPI tooltip, boolean expanded)
AbilityPlugincreateTooltip in interface AbilityPlugincreateTooltip in class BaseAbilityPluginpublic boolean hasTooltip()
hasTooltip in interface AbilityPluginhasTooltip in class BaseAbilityPluginpublic java.util.EnumSet<CampaignEngineLayers> getActiveLayers()
getActiveLayers in interface AbilityPlugingetActiveLayers in class BaseAbilityPluginpublic void advance(float amount)
EveryFrameScriptadvance in interface EveryFrameScriptadvance in class BaseToggleAbilityamount - seconds elapsed during the last frame.protected void applyEffect(float amount, float level)
BaseToggleAbilityapplyEffect in class BaseToggleAbilitypublic CommoditySpecAPI getCommodity()
public boolean isUsable()
AbilityPluginisUsable in interface AbilityPluginisUsable in class BaseToggleAbilityprotected void deactivateImpl()
deactivateImpl in class BaseToggleAbilityprotected void cleanupImpl()
cleanupImpl in class BaseToggleAbilitypublic float getRingRadius()
public void render(CampaignEngineLayers layer, ViewportAPI viewport)
render in interface AbilityPluginrender in class BaseAbilityPlugin