1package com.fs.starfarer.api.impl.campaign.eventide;
4import java.util.LinkedHashSet;
7import org.lwjgl.opengl.GL11;
8import org.lwjgl.util.vector.Vector2f;
10import com.fs.starfarer.api.Global;
11import com.fs.starfarer.api.graphics.SpriteAPI;
12import com.fs.starfarer.api.util.Misc;
19 public boolean done =
false;
56 return index - currIndex;
61 actor.loc.x -= curr.move.x * anim.scale *
actor.
facing;
62 actor.loc.y -= curr.move.y * anim.scale *
actor.
facing;
77 actor.loc.x += curr.move.x * anim.scale *
actor.
facing;
78 actor.loc.y += curr.move.y * anim.scale *
actor.
facing;
83 if (soundId ==
null || soundId.isEmpty())
continue;
85 Vector2f soundLoc =
new Vector2f(
actor.
loc);
105 actor.loc.y += anim.moveToIdle.y * anim.scale *
actor.
facing;
111 if (
curr ==
null)
return;
143 GL11.glDisable(GL11.GL_TEXTURE_2D);
144 GL11.glEnable(GL11.GL_BLEND);
145 GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
148 Misc.
renderQuad(area.
x, area.
y, area.
w, area.
h,
new Color(120,120,120,127), alphaMult);
static SettingsAPI getSettings()
static SoundPlayerAPI getSoundPlayer()
static Map< String, CharAnim > ANIMATIONS
int framesUntilAttackFrame()
Set< CharAnimFrame > playedSoundsFor
void advance(float amount)
float returnToIdleXCorrection
boolean makeCurrentFrameLast
void render(float alphaMult)
AnimAction(Actor actor, Object animKey, CharAnimFrame preFrame)
List< HitArea > attackArea
List< HitArea > blockArea
List< HitArea > hittableArea
Float initialRelativeOffset
List< CharAnimFrame > frames
static float SOUND_LOC_MULT
HitArea getAdjustedForAction(AnimAction action)
static void renderQuad(float x, float y, float width, float height, Color color, float alphaMult)
SpriteAPI getSprite(String filename)
SoundAPI playSound(String id, float pitch, float volume, Vector2f loc, Vector2f vel)
void setSize(float width, float height)
void setTexWidth(float texWidth)
void renderAtCenter(float x, float y)
void setAlphaMult(float alphaMult)
void setTexHeight(float texHeight)