From d55b1b8a6d0aa0e4fc49301a1d3d26bf94d40563 Mon Sep 17 00:00:00 2001 From: Allexit Date: Sat, 9 May 2015 23:30:05 +0300 Subject: [PATCH] removed a mysterious visitor --- .../saltosion/gladiator/SpriteSequence.java | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 core/src/com/saltosion/gladiator/SpriteSequence.java diff --git a/core/src/com/saltosion/gladiator/SpriteSequence.java b/core/src/com/saltosion/gladiator/SpriteSequence.java deleted file mode 100644 index 558f7f0..0000000 --- a/core/src/com/saltosion/gladiator/SpriteSequence.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.saltosion.gladiator; - -import java.util.ArrayList; - -import com.badlogic.gdx.graphics.g2d.Sprite; - -public class SpriteSequence { - - private ArrayList sprites = new ArrayList(); - 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(); - } -}