1package com.fs.starfarer.api.impl.campaign.abilities;
3import org.lwjgl.util.vector.Vector2f;
5import com.fs.starfarer.api.Global;
6import com.fs.starfarer.api.ui.TooltipMakerAPI;
7import com.fs.starfarer.api.util.Misc;
74 super.advance(amount);
76 if (
entity.isInCurrentLocation() &&
entity.isVisibleToPlayerFleet() &&
79 if (soundId !=
null) {
89 if (soundId !=
null) {
123 float prevLevel =
level;
157 "Expand tooltip to view conflicting abilities",
190 if (
entity.isPlayerFleet()) {
192 if (soundId !=
null) {
210 if (
entity.isInCurrentLocation() &&
entity.isVisibleToPlayerFleet() && !
entity.isPlayerFleet()) {
212 if (soundId !=
null) {
220 if (
entity.isInCurrentLocation()) {
244 if (
entity.isInCurrentLocation() &&
entity.isVisibleToPlayerFleet() && !
entity.isPlayerFleet()) {
246 if (soundId !=
null) {
250 if (
entity.isPlayerFleet()) {
252 if (soundId !=
null) {
266 if (
entity.isInCurrentLocation()) {
293 return super.isInProgress();
static SoundPlayerAPI getSoundPlayer()
static SectorAPI getSector()
void interruptIncompatible()
transient AbilitySpecAPI spec
String getDeactivationText()
String getActivationText()
String getLoopSoundWorld()
void disableIncompatible()
static boolean PLAY_UI_SOUNDS_IN_WORLD_SOURCES
String getOffSoundWorld()
float getTotalDurationDays()
float getActivationDays()
float getDeactivationDays()
abstract void activateImpl()
float getLoopSoundWorldVolume()
void advance(float amount)
float getProgressFraction()
static final float LOOP_FADE_TIME_DAYS
float getActiveDaysLeft()
abstract void deactivateImpl()
boolean showProgressIndicator()
void setActiveDaysLeft(float activeDaysLeft)
void setCooldownLeft(float cooldownLeft)
boolean hasCustomButtonPressSounds()
abstract void cleanupImpl()
float getCooldownFraction()
boolean showActiveIndicator()
float getLoopSoundWorldPitch()
void addIncompatibleToTooltip(TooltipMakerAPI tooltip, boolean expanded)
float getLoopSoundUIPitch()
abstract void applyEffect(float amount, float level)
float getLoopSoundUIVolume()
Vector2f getListenerPos()
SoundAPI playUISound(String id, float pitch, float volume)
void playLoop(String id, Object playingEntity, float pitch, float volume, Vector2f loc, Vector2f vel)
SoundAPI playSound(String id, float pitch, float volume, Vector2f loc, Vector2f vel)