public class FractureJumpAbility extends BaseDurationAbility
Modifier and Type | Field and Description |
---|---|
static float |
CR_COST_MULT |
static float |
FUEL_USE_MULT |
static float |
NASCENT_JUMP_DIST |
protected EveryFrameScript |
ping |
protected java.lang.Boolean |
primed |
protected NascentGravityWellAPI |
well |
activeDaysLeft, cooldownLeft, fadingOut, level, LOOP_FADE_TIME_DAYS, loopFadeLeft, turnedOn
disableFrames, entity, id, PLAY_UI_SOUNDS_IN_WORLD_SOURCES, spec
Constructor and Description |
---|
FractureJumpAbility() |
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 boolean |
canUseToJumpToHyper() |
protected boolean |
canUseToJumpToSystem() |
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.
|
void |
deactivate()
Toggleable or interruptable abilities should implement this method so
that other abilities may turn them off or interrupt them if needed.
|
protected void |
deactivateImpl() |
void |
fleetLeftBattle(BattleAPI battle,
boolean engagedInHostilities) |
void |
fleetOpenedMarket(MarketAPI market)
Only called for the player fleet.
|
protected java.lang.String |
getActivationText() |
java.awt.Color |
getCooldownColor() |
float |
getCooldownFraction()
0 at start of cooldown, 1 at end.
|
protected float |
getCRCostMult(CampaignFleetAPI fleet) |
NascentGravityWellAPI |
getNearestWell(float maxDist) |
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, 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, 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 final float CR_COST_MULT
public static final float FUEL_USE_MULT
public static final float NASCENT_JUMP_DIST
protected java.lang.Boolean primed
protected NascentGravityWellAPI well
protected EveryFrameScript ping
protected boolean canUseToJumpToHyper()
protected boolean canUseToJumpToSystem()
protected void activateImpl()
activateImpl
in class BaseDurationAbility
public void deactivate()
AbilityPlugin
deactivate
in interface AbilityPlugin
deactivate
in class BaseDurationAbility
protected void applyEffect(float amount, float level)
BaseDurationAbility
applyEffect
in class BaseDurationAbility
protected java.lang.String getActivationText()
getActivationText
in class BaseAbilityPlugin
protected void deactivateImpl()
deactivateImpl
in class BaseDurationAbility
protected void cleanupImpl()
cleanupImpl
in class BaseDurationAbility
public boolean isUsable()
AbilityPlugin
isUsable
in interface AbilityPlugin
isUsable
in class BaseDurationAbility
public NascentGravityWellAPI getNearestWell(float maxDist)
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 java.util.List<FleetMemberAPI> getNonReadyShips()
protected float computeFuelCost()
protected float getCRCostMult(CampaignFleetAPI fleet)
protected float computeSupplyCost()
protected boolean showAlarm()
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.