removed a mysterious visitor

This commit is contained in:
Allexit 2015-05-09 23:30:05 +03:00
parent 5975288d04
commit d55b1b8a6d

View File

@ -1,44 +0,0 @@
package com.saltosion.gladiator;
import java.util.ArrayList;
import com.badlogic.gdx.graphics.g2d.Sprite;
public class SpriteSequence {
private ArrayList<Sprite> sprites = new ArrayList<Sprite>();
private float defaultPlayspeed = 1;
/**
* A static single image.
* @param sprite
*/
public SpriteSequence(Sprite sprite) {
sprites.add(sprite);
defaultPlayspeed = 0;
}
public SpriteSequence(float playspeed) {
this.defaultPlayspeed = playspeed;
if (sprites != null) {
this.sprites = sprites;
}
}
public SpriteSequence addSprite(Sprite s) {
sprites.add(s);
return this;
}
public Sprite getSprite(int index) {
return sprites.get(index);
}
public float getPlayspeed() {
return defaultPlayspeed;
}
public int frameCount() {
return sprites.size();
}
}