public class TransponderAbility extends BaseToggleAbility
| Modifier and Type | Field and Description |
|---|---|
static float |
CONFIRM_DURATION |
static float |
DETECTABILITY_FLAT |
static float |
DETECTABILITY_MULT |
cooldownLeft, isActivateCooldown, level, turnedOndisableFrames, entity, id, PLAY_UI_SOUNDS_IN_WORLD_SOURCES, spec| Constructor and Description |
|---|
TransponderAbility() |
| 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.
|
void |
deactivate()
Toggleable or interruptable abilities should implement this method so
that other abilities may turn them off or interrupt them if needed.
|
protected void |
deactivateImpl() |
protected java.lang.String |
getActivationMessage() |
protected java.lang.String |
getActivationText() |
java.awt.Color |
getCooldownColor() |
float |
getCooldownFraction()
0 at start of cooldown, 1 at end.
|
protected java.lang.String |
getDeactivationMessage() |
protected java.lang.String |
getDeactivationText() |
java.lang.String |
getFactionList(java.util.List<FactionAPI> factions) |
java.util.List<FactionAPI> |
getFactionsThatWouldBecomeHostile() |
static java.util.List<FactionAPI> |
getFactionsThatWouldBecomeHostile(CampaignFleetAPI fleet) |
java.awt.Color |
getProgressColor() |
float |
getProgressFraction()
0 at start of progress, 1 at end.
|
boolean |
hasTooltip() |
boolean |
isCooldownRenderingAdditive() |
boolean |
isOnCooldown() |
void |
pressButton()
Called from the UI when the button for this ability is pressed.
|
protected java.lang.Object |
readResolve() |
boolean |
runWhilePaused() |
boolean |
showProgressIndicator() |
activate, addIncompatibleToTooltip, cleanup, getActivateCooldownDays, getActivationDays, getCooldownLeft, getDeactivateCooldownDays, getDeactivationDays, getLevel, getLoopSoundUIPitch, getLoopSoundUIVolume, getLoopSoundWorldPitch, getLoopSoundWorldVolume, hasCustomButtonPressSounds, isActive, isUsable, setCooldownLeft, showActiveIndicatoraddIncompatibleToTooltip, disableIncompatible, fleetJoinedBattle, fleetLeftBattle, fleetOpenedMarket, forceDisable, getActiveColor, getActiveLayers, getEntity, getFleet, getId, getInterruptedList, getLoopSoundUI, getLoopSoundWorld, getModId, getOffSoundUI, getOffSoundWorld, getOnSoundUI, getOnSoundWorld, getSpec, getSpriteName, getTooltipWidth, init, interruptIncompatible, isActiveOrInProgress, isCompatible, isDone, isInProgress, isTooltipExpandable, render, showCooldownIndicatorpublic static final float DETECTABILITY_MULT
public static final float DETECTABILITY_FLAT
public static final float CONFIRM_DURATION
public TransponderAbility()
protected java.lang.String getActivationText()
getActivationText in class BaseAbilityPluginprotected java.lang.String getDeactivationText()
getDeactivationText in class BaseAbilityPluginprotected void activateImpl()
activateImpl in class BaseToggleAbilityprotected void applyEffect(float amount, float level)
BaseToggleAbilityapplyEffect in class BaseToggleAbilitypublic void deactivate()
AbilityPlugindeactivate in interface AbilityPlugindeactivate in class BaseToggleAbilityprotected void deactivateImpl()
deactivateImpl in class BaseToggleAbilityprotected void cleanupImpl()
cleanupImpl in class BaseToggleAbilitypublic void createTooltip(TooltipMakerAPI tooltip, boolean expanded)
AbilityPlugincreateTooltip in interface AbilityPlugincreateTooltip in class BaseAbilityPluginpublic java.lang.String getFactionList(java.util.List<FactionAPI> factions)
public boolean hasTooltip()
hasTooltip in interface AbilityPluginhasTooltip in class BaseAbilityPluginpublic java.util.List<FactionAPI> getFactionsThatWouldBecomeHostile()
public static java.util.List<FactionAPI> getFactionsThatWouldBecomeHostile(CampaignFleetAPI fleet)
public void advance(float amount)
EveryFrameScriptadvance in interface EveryFrameScriptadvance in class BaseToggleAbilityamount - seconds elapsed during the last frame.public boolean runWhilePaused()
runWhilePaused in interface EveryFrameScriptrunWhilePaused in class BaseToggleAbilitypublic boolean showProgressIndicator()
showProgressIndicator in interface AbilityPluginshowProgressIndicator in class BaseToggleAbilitypublic float getProgressFraction()
AbilityPlugingetProgressFraction in interface AbilityPlugingetProgressFraction in class BaseToggleAbilitypublic java.awt.Color getProgressColor()
getProgressColor in interface AbilityPlugingetProgressColor in class BaseAbilityPluginprotected java.lang.Object readResolve()
readResolve in class BaseAbilityPluginpublic void pressButton()
AbilityPluginpressButton in interface AbilityPluginpressButton in class BaseToggleAbilityprotected java.lang.String getDeactivationMessage()
protected java.lang.String getActivationMessage()
public float getCooldownFraction()
AbilityPlugingetCooldownFraction in interface AbilityPlugingetCooldownFraction in class BaseToggleAbilitypublic boolean isOnCooldown()
isOnCooldown in interface AbilityPluginisOnCooldown in class BaseAbilityPluginpublic java.awt.Color getCooldownColor()
getCooldownColor in interface AbilityPlugingetCooldownColor in class BaseAbilityPluginpublic boolean isCooldownRenderingAdditive()
isCooldownRenderingAdditive in interface AbilityPluginisCooldownRenderingAdditive in class BaseAbilityPlugin