diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-10-09 11:48:52 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-10-09 11:48:52 +0200 |
commit | 909d7771fa7a5e65bc7b11b8674a147620f3350d (patch) | |
tree | 16e33f8753460544501e6ff3cd48b1db188426f1 /test/src/ch/asynk | |
parent | a07149c93c1c1b5037c49cf6a6b6ec7c3aa02252 (diff) | |
download | gdx-boardgame-909d7771fa7a5e65bc7b11b8674a147620f3350d.zip gdx-boardgame-909d7771fa7a5e65bc7b11b8674a147620f3350d.tar.gz |
use pieces/Piece
Diffstat (limited to 'test/src/ch/asynk')
-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)); - } -} |