public class ReversePolarityToggle extends ToggleAbilityWithCost
| Modifier and Type | Field and Description |
|---|---|
static float |
ACTIVATION_DAMAGE_PROB |
static float |
CR_COST_MULT |
static float |
FUEL_COST_MULT |
static java.lang.String |
POLARITY_SPEED_MULT |
static java.awt.Color |
POLARITY_WIND_GLOW_COLOR |
static java.lang.String |
POLARITY_WIND_GLOW_COLOR_KEY |
static java.lang.String |
REVERSED_POLARITY |
static float |
SLIPSTREAM_SPEED_MULT |
cooldownLeft, isActivateCooldown, level, turnedOndisableFrames, entity, id, PLAY_UI_SOUNDS_IN_WORLD_SOURCES, spec| Constructor and Description |
|---|
ReversePolarityToggle() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOtherNotUsableReason(TooltipMakerAPI tooltip,
boolean expanded) |
protected void |
applyFleetVisual(float amount,
float level) |
protected void |
applyStatsEffect(float amount,
float level) |
boolean |
canRecoverCRWhileActive(boolean forTooltip) |
void |
createTooltip(TooltipMakerAPI tooltip,
boolean expanded)
Will be called every frame the tooltip is shown, so the tooltip can be dynamic.
|
protected java.lang.String |
getActivationText() |
java.awt.Color |
getCooldownColor() |
float |
getCRCostMult(boolean forTooltip) |
float |
getFuelCostMult(boolean forTooltip) |
boolean |
isFleetInSlipstream() |
boolean |
isUsable()
Whether the ability can be activated / the UI button corresponding to it is enabled.
|
protected boolean |
showAlarm() |
activateImpl, addCostTooltipSection, applyEffect, cleanupImpl, computeFuelCost, computeSupplyCost, deactivateImpl, deductCost, getActivationAtLowCRShipDamageProbability, getActivationDamageLevel, getCooldownFraction, getCRCost, getNonReadyShips, hasTooltip, isCooldownRenderingAdditive, isOnCooldown, shouldApplyCostWhenDeactivating, unapplyStatsEffectactivate, addIncompatibleToTooltip, advance, cleanup, deactivate, getActivateCooldownDays, getActivationDays, getCooldownLeft, getDeactivateCooldownDays, getDeactivationDays, getLevel, getLoopSoundUIPitch, getLoopSoundUIVolume, getLoopSoundWorldPitch, getLoopSoundWorldVolume, getProgressFraction, hasCustomButtonPressSounds, isActive, pressButton, runWhilePaused, setCooldownLeft, showActiveIndicator, showProgressIndicatoraddIncompatibleToTooltip, disableIncompatible, fleetJoinedBattle, fleetLeftBattle, fleetOpenedMarket, forceDisable, getActiveColor, getActiveLayers, getDeactivationText, getEntity, getFleet, getId, getInterruptedList, getLoopSoundUI, getLoopSoundWorld, getModId, getOffSoundUI, getOffSoundWorld, getOnSoundUI, getOnSoundWorld, getProgressColor, getSpec, getSpriteName, getTooltipWidth, init, interruptIncompatible, isActiveOrInProgress, isCompatible, isDone, isInProgress, isTooltipExpandable, readResolve, render, showCooldownIndicatorpublic static java.lang.String REVERSED_POLARITY
public static java.lang.String POLARITY_SPEED_MULT
public static java.lang.String POLARITY_WIND_GLOW_COLOR_KEY
public static java.awt.Color POLARITY_WIND_GLOW_COLOR
public static float SLIPSTREAM_SPEED_MULT
public static float CR_COST_MULT
public static float FUEL_COST_MULT
public static float ACTIVATION_DAMAGE_PROB
public ReversePolarityToggle()
public float getFuelCostMult(boolean forTooltip)
getFuelCostMult in class ToggleAbilityWithCostpublic float getCRCostMult(boolean forTooltip)
getCRCostMult in class ToggleAbilityWithCostpublic boolean canRecoverCRWhileActive(boolean forTooltip)
canRecoverCRWhileActive in class ToggleAbilityWithCostprotected java.lang.String getActivationText()
getActivationText in class BaseAbilityPluginpublic boolean isUsable()
AbilityPluginisUsable in interface AbilityPluginisUsable in class ToggleAbilityWithCostprotected void applyStatsEffect(float amount, float level)
applyStatsEffect in class ToggleAbilityWithCostprotected void applyFleetVisual(float amount, float level)
applyFleetVisual in class ToggleAbilityWithCostpublic boolean isFleetInSlipstream()
public void createTooltip(TooltipMakerAPI tooltip, boolean expanded)
AbilityPlugincreateTooltip in interface AbilityPlugincreateTooltip in class BaseAbilityPluginpublic void addOtherNotUsableReason(TooltipMakerAPI tooltip, boolean expanded)
addOtherNotUsableReason in class ToggleAbilityWithCostprotected boolean showAlarm()
showAlarm in class ToggleAbilityWithCostpublic java.awt.Color getCooldownColor()
getCooldownColor in interface AbilityPlugingetCooldownColor in class ToggleAbilityWithCost