diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Pawn.java | 5 | ||||
-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.java | 4 |
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; |