public class EmergencyBurnAbility extends BaseDurationAbility
| Modifier and Type | Field and Description |
|---|---|
static float |
ACCELERATION_MULT |
static float |
ACTIVATION_DAMAGE_PROB |
static float |
CR_COST_MULT |
static float |
DETECTABILITY_PERCENT |
static float |
FUEL_USE_MULT |
static float |
MAX_BURN_MOD |
static float |
SENSOR_RANGE_MULT |
activeDaysLeft, cooldownLeft, fadingOut, level, LOOP_FADE_TIME_DAYS, loopFadeLeft, turnedOndisableFrames, entity, id, PLAY_UI_SOUNDS_IN_WORLD_SOURCES, spec| Constructor and Description |
|---|
EmergencyBurnAbility() |
| 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() |
protected float |
computeFuelCost() |
protected float |
computeSupplyCost() |
void |
createTooltip(TooltipMakerAPI tooltip,
boolean expanded)
Will be called every frame the tooltip is shown, so the tooltip can be dynamic.
|
protected void |
deactivateImpl() |
void |
fleetLeftBattle(BattleAPI battle,
boolean engagedInHostilities) |
void |
fleetOpenedMarket(MarketAPI market)
Only called for the player fleet.
|
java.awt.Color |
getCooldownColor() |
float |
getCooldownFraction()
0 at start of cooldown, 1 at end.
|
static float |
getCRCost(FleetMemberAPI member,
CampaignFleetAPI fleet) |
protected java.util.List<FleetMemberAPI> |
getNonReadyShips() |
boolean |
hasTooltip() |
boolean |
isCooldownRenderingAdditive() |
boolean |
isOnCooldown() |
boolean |
isUsable()
Whether the ability can be activated / the UI button corresponding to it is enabled.
|
protected boolean |
showAlarm() |
boolean |
showCooldownIndicator() |
activate, addIncompatibleToTooltip, advance, cleanup, deactivate, getActivationDays, getActiveDaysLeft, getCooldownDays, getCooldownLeft, getDeactivationDays, getDurationDays, getLevel, getLoopSoundUIPitch, getLoopSoundUIVolume, getLoopSoundWorldPitch, getLoopSoundWorldVolume, getProgressFraction, getTotalDurationDays, hasCustomButtonPressSounds, isActive, isFadingOut, isInProgress, pressButton, runWhilePaused, setActiveDaysLeft, setCooldownLeft, showActiveIndicator, showProgressIndicatoraddIncompatibleToTooltip, disableIncompatible, fleetJoinedBattle, forceDisable, getActivationText, getActiveColor, getActiveLayers, getDeactivationText, getEntity, getFleet, getId, getInterruptedList, getLoopSoundUI, getLoopSoundWorld, getModId, getOffSoundUI, getOffSoundWorld, getOnSoundUI, getOnSoundWorld, getProgressColor, getSpec, getSpriteName, getTooltipWidth, init, interruptIncompatible, isActiveOrInProgress, isCompatible, isDone, isTooltipExpandable, readResolve, renderpublic static float SENSOR_RANGE_MULT
public static float DETECTABILITY_PERCENT
public static float MAX_BURN_MOD
public static float CR_COST_MULT
public static float FUEL_USE_MULT
public static float ACCELERATION_MULT
public static float ACTIVATION_DAMAGE_PROB
public EmergencyBurnAbility()
protected void activateImpl()
activateImpl in class BaseDurationAbilityprotected void applyEffect(float amount, float level)
BaseDurationAbilityapplyEffect in class BaseDurationAbilityprotected void deactivateImpl()
deactivateImpl in class BaseDurationAbilityprotected void cleanupImpl()
cleanupImpl in class BaseDurationAbilityprotected java.util.List<FleetMemberAPI> getNonReadyShips()
public static float getCRCost(FleetMemberAPI member, CampaignFleetAPI fleet)
protected float computeFuelCost()
protected float computeSupplyCost()
public void createTooltip(TooltipMakerAPI tooltip, boolean expanded)
AbilityPlugincreateTooltip in interface AbilityPlugincreateTooltip in class BaseAbilityPluginpublic boolean hasTooltip()
hasTooltip in interface AbilityPluginhasTooltip in class BaseAbilityPluginpublic void fleetLeftBattle(BattleAPI battle, boolean engagedInHostilities)
fleetLeftBattle in interface AbilityPluginfleetLeftBattle in class BaseAbilityPluginpublic void fleetOpenedMarket(MarketAPI market)
AbilityPluginfleetOpenedMarket in interface AbilityPluginfleetOpenedMarket in class BaseAbilityPluginprotected boolean showAlarm()
public boolean isUsable()
AbilityPluginisUsable in interface AbilityPluginisUsable in class BaseDurationAbilitypublic float getCooldownFraction()
AbilityPlugingetCooldownFraction in interface AbilityPlugingetCooldownFraction in class BaseDurationAbilitypublic boolean showCooldownIndicator()
showCooldownIndicator in interface AbilityPluginshowCooldownIndicator in class BaseAbilityPluginpublic 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