public class DurationAbilityWithCost2 extends BaseDurationAbility
activeDaysLeft, cooldownLeft, fadingOut, level, LOOP_FADE_TIME_DAYS, loopFadeLeft, turnedOndisableFrames, entity, id, PLAY_UI_SOUNDS_IN_WORLD_SOURCES, spec| Constructor and Description |
|---|
DurationAbilityWithCost2() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateImpl() |
void |
addInitialDescription(TooltipMakerAPI tooltip,
boolean expanded) |
void |
addNotUsableReasonAfterFuelCost(TooltipMakerAPI tooltip,
boolean expanded) |
boolean |
addNotUsableReasonBeforeFuelCost(TooltipMakerAPI tooltip,
boolean expanded) |
protected void |
applyEffect(float amount,
float level)
Will be called once when level is 0 and consistently when level >0.
|
protected void |
applyFleetVisual(float amount,
float level) |
protected void |
applyStatsEffect(float amount,
float level) |
boolean |
canRecoverCRWhileActive() |
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() |
protected void |
deductCost() |
void |
fleetLeftBattle(BattleAPI battle,
boolean engagedInHostilities) |
void |
fleetOpenedMarket(MarketAPI market)
Only called for the player fleet.
|
float |
getActivationAtLowCRShipDamageProbability() |
Misc.FleetMemberDamageLevel |
getActivationDamageLevel() |
java.awt.Color |
getCooldownColor() |
float |
getCooldownFraction()
0 at start of cooldown, 1 at end.
|
float |
getCRCost(FleetMemberAPI member) |
float |
getCRCostMult() |
float |
getFuelCostMult() |
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() |
protected void |
unapplyStatsEffect() |
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, render, showCooldownIndicatorpublic DurationAbilityWithCost2()
public float getFuelCostMult()
public float getCRCostMult()
public float getActivationAtLowCRShipDamageProbability()
public Misc.FleetMemberDamageLevel getActivationDamageLevel()
public boolean canRecoverCRWhileActive()
protected void deductCost()
protected void applyStatsEffect(float amount, float level)
protected void unapplyStatsEffect()
protected void applyFleetVisual(float amount, float level)
protected 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 float getCRCost(FleetMemberAPI member)
protected float computeFuelCost()
protected float computeSupplyCost()
public void addInitialDescription(TooltipMakerAPI tooltip, boolean expanded)
public boolean addNotUsableReasonBeforeFuelCost(TooltipMakerAPI tooltip, boolean expanded)
public void addNotUsableReasonAfterFuelCost(TooltipMakerAPI tooltip, boolean expanded)
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 isOnCooldown()
isOnCooldown in interface AbilityPluginisOnCooldown in class BaseAbilityPluginpublic boolean isUsable()
AbilityPluginisUsable in interface AbilityPluginisUsable in class BaseDurationAbilitypublic float getCooldownFraction()
AbilityPlugingetCooldownFraction in interface AbilityPlugingetCooldownFraction in class BaseDurationAbilitypublic java.awt.Color getCooldownColor()
getCooldownColor in interface AbilityPlugingetCooldownColor in class BaseAbilityPluginpublic boolean isCooldownRenderingAdditive()
isCooldownRenderingAdditive in interface AbilityPluginisCooldownRenderingAdditive in class BaseAbilityPluginprotected void activateImpl()
activateImpl in class BaseDurationAbility