summaryrefslogtreecommitdiffstats
path: root/core
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
parent2850bbff24c435eb133e6b8d68a391db97e6a9f8 (diff)
downloadRustAndDust-f42de5230fedee63bc0783f26822790bbba82dfe.zip
RustAndDust-f42de5230fedee63bc0783f26822790bbba82dfe.tar.gz
PawnNode -> PawnImage does not implement Node anymore
Diffstat (limited to 'core')
-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
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java4
3 files changed, 7 insertions, 6 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);
}
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java
index 310ead9..61833eb 100644
--- a/core/src/ch/asynk/tankontank/game/Unit.java
+++ b/core/src/ch/asynk/tankontank/game/Unit.java
@@ -2,9 +2,9 @@ package ch.asynk.tankontank.game;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
-import ch.asynk.tankontank.engine.PawnNode;
+import ch.asynk.tankontank.engine.PawnImage;
-public class Unit extends PawnNode
+public class Unit extends PawnImage
{
public int rng;
public int def;