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, turnedOn
disableFrames, 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, showProgressIndicator
addIncompatibleToTooltip, 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, render
public 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
protected void activateImpl()
activateImpl
in class BaseDurationAbility
protected void applyEffect(float amount, float level)
BaseDurationAbility
applyEffect
in class BaseDurationAbility
protected void deactivateImpl()
deactivateImpl
in class BaseDurationAbility
protected void cleanupImpl()
cleanupImpl
in class BaseDurationAbility
protected 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)
AbilityPlugin
createTooltip
in interface AbilityPlugin
createTooltip
in class BaseAbilityPlugin
public boolean hasTooltip()
hasTooltip
in interface AbilityPlugin
hasTooltip
in class BaseAbilityPlugin
public void fleetLeftBattle(BattleAPI battle, boolean engagedInHostilities)
fleetLeftBattle
in interface AbilityPlugin
fleetLeftBattle
in class BaseAbilityPlugin
public void fleetOpenedMarket(MarketAPI market)
AbilityPlugin
fleetOpenedMarket
in interface AbilityPlugin
fleetOpenedMarket
in class BaseAbilityPlugin
protected boolean showAlarm()
public boolean isUsable()
AbilityPlugin
isUsable
in interface AbilityPlugin
isUsable
in class BaseDurationAbility
public float getCooldownFraction()
AbilityPlugin
getCooldownFraction
in interface AbilityPlugin
getCooldownFraction
in class BaseDurationAbility
public boolean showCooldownIndicator()
showCooldownIndicator
in interface AbilityPlugin
showCooldownIndicator
in class BaseAbilityPlugin
public boolean isOnCooldown()
isOnCooldown
in interface AbilityPlugin
isOnCooldown
in class BaseAbilityPlugin
public java.awt.Color getCooldownColor()
getCooldownColor
in interface AbilityPlugin
getCooldownColor
in class BaseAbilityPlugin
public boolean isCooldownRenderingAdditive()
isCooldownRenderingAdditive
in interface AbilityPlugin
isCooldownRenderingAdditive
in class BaseAbilityPlugin
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.