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;
63 super.advance(amount);
65 if (
entity.isInCurrentLocation() &&
entity.isVisibleToPlayerFleet() &&
68 if (soundId !=
null) {
78 if (soundId !=
null) {
93 float prevLevel =
level;
111 "Expand tooltip to view conflicting abilities",
120 return super.isUsable();
162 if (
entity.isPlayerFleet()) {
165 if (soundId !=
null) {
174 if (soundId !=
null) {
188 if (
entity.isInCurrentLocation() &&
entity.isVisibleToPlayerFleet() && !
entity.isPlayerFleet()) {
190 if (soundId !=
null) {
201 if (
entity.isInCurrentLocation()) {
217 if (
entity.isInCurrentLocation() &&
entity.isVisibleToPlayerFleet() && !
entity.isPlayerFleet()) {
219 if (soundId !=
null) {
231 if (
entity.isInCurrentLocation()) {
static SoundPlayerAPI getSoundPlayer()
static SectorAPI getSector()
void interruptIncompatible()
transient AbilitySpecAPI spec
String getDeactivationText()
String getActivationText()
String getLoopSoundWorld()
static boolean PLAY_UI_SOUNDS_IN_WORLD_SOURCES
String getOffSoundWorld()
boolean isActivateCooldown
float getLoopSoundWorldVolume()
abstract void activateImpl()
abstract void applyEffect(float amount, float level)
float getProgressFraction()
void addIncompatibleToTooltip(TooltipMakerAPI tooltip, boolean expanded)
float getLoopSoundWorldPitch()
float getActivateCooldownDays()
boolean showProgressIndicator()
float getLoopSoundUIVolume()
boolean hasCustomButtonPressSounds()
float getCooldownFraction()
void advance(float amount)
float getLoopSoundUIPitch()
float getDeactivationDays()
float getDeactivateCooldownDays()
float getActivationDays()
boolean showActiveIndicator()
void setCooldownLeft(float cooldownLeft)
abstract void deactivateImpl()
abstract void cleanupImpl()
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)