diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-01-25 21:50:06 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-01-25 21:50:06 +0100 |
commit | 1939a1b80b270010fb7ff3633d102dfb27a8c276 (patch) | |
tree | c0b4be24bbe9bed911cbc65c9fe26986c26d1aff /core/src/ch/asynk/gdx | |
parent | cf4ef8c2353c7deca4c4948e35ff614e3f7e2e4d (diff) | |
download | gdx-boardgame-1939a1b80b270010fb7ff3633d102dfb27a8c276.zip gdx-boardgame-1939a1b80b270010fb7ff3633d102dfb27a8c276.tar.gz |
Piece : add setHead(Texture)
Diffstat (limited to 'core/src/ch/asynk/gdx')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/Piece.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Piece.java b/core/src/ch/asynk/gdx/boardgame/Piece.java index 960be1a..47174fd 100644 --- a/core/src/ch/asynk/gdx/boardgame/Piece.java +++ b/core/src/ch/asynk/gdx/boardgame/Piece.java @@ -25,6 +25,11 @@ public class Piece implements Drawable, Positionable, Rotable, Scalable public Piece(Texture texture) { + setHead(texture); + } + + public void setHead(Texture texture) + { head = new Sprite(texture); } |