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, turnedOndisableFrames, 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, showProgressIndicatoraddIncompatibleToTooltip, 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, renderpublic static float CR_COST_MULT
public static float FUEL_USE_MULT
public static float NASCENT_JUMP_DIST
protected java.lang.Boolean primed
protected NascentGravityWellAPI well
protected EveryFrameScript ping
public FractureJumpAbility()
protected boolean canUseToJumpToHyper()
protected boolean canUseToJumpToSystem()
protected void activateImpl()
activateImpl in class BaseDurationAbilitypublic void deactivate()
AbilityPlugindeactivate in interface AbilityPlugindeactivate in class BaseDurationAbilityprotected void applyEffect(float amount, float level)
BaseDurationAbilityapplyEffect in class BaseDurationAbilityprotected java.lang.String getActivationText()
getActivationText in class BaseAbilityPluginprotected void deactivateImpl()
deactivateImpl in class BaseDurationAbilityprotected void cleanupImpl()
cleanupImpl in class BaseDurationAbilitypublic boolean isUsable()
AbilityPluginisUsable in interface AbilityPluginisUsable in class BaseDurationAbilitypublic NascentGravityWellAPI getNearestWell(float maxDist)
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 java.util.List<FleetMemberAPI> getNonReadyShips()
protected float computeFuelCost()
protected float getCRCostMult(CampaignFleetAPI fleet)
protected float computeSupplyCost()
protected boolean showAlarm()
public 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