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, turnedOn
disableFrames, 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, unapplyStatsEffect
activate, addIncompatibleToTooltip, advance, cleanup, deactivate, getActivateCooldownDays, getActivationDays, getCooldownLeft, getDeactivateCooldownDays, getDeactivationDays, getLevel, getLoopSoundUIPitch, getLoopSoundUIVolume, getLoopSoundWorldPitch, getLoopSoundWorldVolume, getProgressFraction, hasCustomButtonPressSounds, isActive, pressButton, runWhilePaused, setCooldownLeft, showActiveIndicator, showProgressIndicator
addIncompatibleToTooltip, 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, showCooldownIndicator
public 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 float getFuelCostMult(boolean forTooltip)
getFuelCostMult
in class ToggleAbilityWithCost
public float getCRCostMult(boolean forTooltip)
getCRCostMult
in class ToggleAbilityWithCost
public boolean canRecoverCRWhileActive(boolean forTooltip)
canRecoverCRWhileActive
in class ToggleAbilityWithCost
protected java.lang.String getActivationText()
getActivationText
in class BaseAbilityPlugin
public boolean isUsable()
AbilityPlugin
isUsable
in interface AbilityPlugin
isUsable
in class ToggleAbilityWithCost
protected void applyStatsEffect(float amount, float level)
applyStatsEffect
in class ToggleAbilityWithCost
protected void applyFleetVisual(float amount, float level)
applyFleetVisual
in class ToggleAbilityWithCost
public boolean isFleetInSlipstream()
public void createTooltip(TooltipMakerAPI tooltip, boolean expanded)
AbilityPlugin
createTooltip
in interface AbilityPlugin
createTooltip
in class BaseAbilityPlugin
public void addOtherNotUsableReason(TooltipMakerAPI tooltip, boolean expanded)
addOtherNotUsableReason
in class ToggleAbilityWithCost
protected boolean showAlarm()
showAlarm
in class ToggleAbilityWithCost
public java.awt.Color getCooldownColor()
getCooldownColor
in interface AbilityPlugin
getCooldownColor
in class ToggleAbilityWithCost
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.