diff options
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/PawnNode.java | 4 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/gfx/Image.java (renamed from core/src/ch/asynk/tankontank/engine/gfx/SpriteNode.java) | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/PawnNode.java b/core/src/ch/asynk/tankontank/engine/PawnNode.java index 600c6dd..e095042 100644 --- a/core/src/ch/asynk/tankontank/engine/PawnNode.java +++ b/core/src/ch/asynk/tankontank/engine/PawnNode.java @@ -6,12 +6,12 @@ import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.math.Vector3; -import ch.asynk.tankontank.engine.gfx.SpriteNode; +import ch.asynk.tankontank.engine.gfx.Image; import ch.asynk.tankontank.engine.gfx.animations.MoveToAnimation; import ch.asynk.tankontank.engine.gfx.animations.RunnableAnimation; import ch.asynk.tankontank.engine.gfx.animations.AnimationSequence; -public class PawnNode extends SpriteNode implements Pawn +public class PawnNode extends Image implements Pawn { private static final float MOVE_TIME = 0.3f; diff --git a/core/src/ch/asynk/tankontank/engine/gfx/SpriteNode.java b/core/src/ch/asynk/tankontank/engine/gfx/Image.java index dd1c648..00a7927 100644 --- a/core/src/ch/asynk/tankontank/engine/gfx/SpriteNode.java +++ b/core/src/ch/asynk/tankontank/engine/gfx/Image.java @@ -1,21 +1,22 @@ package ch.asynk.tankontank.engine.gfx; +import com.badlogic.gdx.utils.Disposable; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; -public abstract class SpriteNode extends Sprite implements Node +public abstract class Image extends Sprite implements Drawable, Disposable { private Texture texture; - public SpriteNode(Texture texture) + public Image(Texture texture) { super(texture); this.texture = texture; } - public SpriteNode(TextureRegion region) + public Image(TextureRegion region) { super(region); this.texture = null; |