1package com.fs.starfarer.api.impl.campaign.eventide;
3import java.util.ArrayList;
4import java.util.LinkedHashSet;
8import org.lwjgl.util.vector.Vector2f;
10import com.fs.starfarer.api.Global;
11import com.fs.starfarer.api.graphics.SpriteAPI;
21 public List<CharAnimFrame>
frames =
new ArrayList<CharAnimFrame>();
33 copy.frames =
new ArrayList<CharAnimFrame>();
44 }
catch (CloneNotSupportedException e) {
45 throw new RuntimeException(e);
63 if (!frame.blockArea.isEmpty())
return true;
69 if (!frame.attackArea.isEmpty())
return true;
75 for (String
action : actions) {
98 public void skip(
float frameWidth) {
101 public void addFrame(
float y,
float frameWidth,
float dur) {
102 float txPerPixel =
sprite.getTextureWidth() /
sprite.getWidth();
103 float tyPerPixel =
sprite.getTextureHeight() /
sprite.getHeight();
108 frame.ty = y * tyPerPixel;
109 frame.tw = frameWidth * txPerPixel;
111 frame.width = frameWidth;
static SettingsAPI getSettings()
Float initialRelativeOffset
boolean hasAttackFrames()
Set< String > interruptableBy
void addFrame(float y, float frameWidth, float dur)
List< CharAnimFrame > frames
void interruptableBy(String ...actions)
void updateTextureScale(float scale)
void skip(float frameWidth)
CharAnim(String textureId, String action, float frameHeight)
SpriteAPI getSprite(String filename)