diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java | 5 | ||||
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/Panzer.java | 13 |
2 files changed, 3 insertions, 15 deletions
diff --git a/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java b/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java index 9871b35..5bf55c3 100644 --- a/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java +++ b/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java @@ -7,6 +7,7 @@ import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.math.Vector2; import ch.asynk.gdx.boardgame.Camera; +import ch.asynk.gdx.boardgame.pieces.Piece; import ch.asynk.gdx.boardgame.boards.Board; import ch.asynk.gdx.boardgame.boards.BoardFactory; import ch.asynk.gdx.boardgame.ui.Alignment; @@ -31,7 +32,7 @@ public class AnimationsScreen extends AbstractScreen private State state; private final Texture map; - private final Panzer panzer; + private final Piece panzer; private final Camera cam; private final Board board; private Animation animation; @@ -44,7 +45,7 @@ public class AnimationsScreen extends AbstractScreen this.board = BoardFactory.getBoard(BoardFactory.BoardType.HEX, 110, 50, 103, BoardFactory.BoardOrientation.VERTICAL); this.camera = this.cam = new Camera(10, map.getWidth(), map.getHeight(), 1.0f, 0.3f, false); - this.panzer = new Panzer(app); + this.panzer = new Piece(app.assets.getTexture(app.assets.PANZER)); Vector2 v = new Vector2(); this.board.centerOf(7, 4, v); this.panzer.setPosition(v.x - (panzer.getWidth() / 2), v.y - (panzer.getHeight() / 2)); diff --git a/test/src/ch/asynk/gdx/boardgame/test/Panzer.java b/test/src/ch/asynk/gdx/boardgame/test/Panzer.java deleted file mode 100644 index b24a942..0000000 --- a/test/src/ch/asynk/gdx/boardgame/test/Panzer.java +++ /dev/null @@ -1,13 +0,0 @@ -package ch.asynk.gdx.boardgame.test; - -import com.badlogic.gdx.graphics.g2d.Sprite; - -import ch.asynk.gdx.boardgame.Scalable; - -public class Panzer extends Sprite implements Scalable -{ - public Panzer(final GdxBoardTest app) - { - super(app.assets.getTexture(app.assets.PANZER)); - } -} |