summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-21 02:09:32 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-21 02:09:32 +0200
commitf42de5230fedee63bc0783f26822790bbba82dfe (patch)
tree937d402e5da8b117eb4112fd3b0cff5e94b31d67 /core/src/ch/asynk/tankontank/engine
parent2850bbff24c435eb133e6b8d68a391db97e6a9f8 (diff)
downloadRustAndDust-f42de5230fedee63bc0783f26822790bbba82dfe.zip
RustAndDust-f42de5230fedee63bc0783f26822790bbba82dfe.tar.gz
PawnNode -> PawnImage does not implement Node anymore
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Pawn.java5
-rw-r--r--core/src/ch/asynk/tankontank/engine/PawnImage.java (renamed from core/src/ch/asynk/tankontank/engine/PawnNode.java)4
2 files changed, 5 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java
index 87c06c9..0198302 100644
--- a/core/src/ch/asynk/tankontank/engine/Pawn.java
+++ b/core/src/ch/asynk/tankontank/engine/Pawn.java
@@ -1,11 +1,12 @@
package ch.asynk.tankontank.engine;
import com.badlogic.gdx.math.Vector3;
+import com.badlogic.gdx.utils.Disposable;
-import ch.asynk.tankontank.engine.gfx.Node;
+import ch.asynk.tankontank.engine.gfx.Drawable;
import ch.asynk.tankontank.engine.gfx.animations.AnimationSequence;
-public interface Pawn extends Node
+public interface Pawn extends Drawable, Disposable
{
public Vector3 getLastPosition();
diff --git a/core/src/ch/asynk/tankontank/engine/PawnNode.java b/core/src/ch/asynk/tankontank/engine/PawnImage.java
index e095042..ac4a071 100644
--- a/core/src/ch/asynk/tankontank/engine/PawnNode.java
+++ b/core/src/ch/asynk/tankontank/engine/PawnImage.java
@@ -11,13 +11,13 @@ 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 Image implements Pawn
+public class PawnImage extends Image implements Pawn
{
private static final float MOVE_TIME = 0.3f;
private ArrayDeque<Vector3> path = new ArrayDeque<Vector3>();
- public PawnNode(TextureRegion region)
+ public PawnImage(TextureRegion region)
{
super(region);
}