summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-01-25 21:50:06 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2020-01-25 21:50:06 +0100
commit1939a1b80b270010fb7ff3633d102dfb27a8c276 (patch)
treec0b4be24bbe9bed911cbc65c9fe26986c26d1aff /core
parentcf4ef8c2353c7deca4c4948e35ff614e3f7e2e4d (diff)
downloadgdx-boardgame-1939a1b80b270010fb7ff3633d102dfb27a8c276.zip
gdx-boardgame-1939a1b80b270010fb7ff3633d102dfb27a8c276.tar.gz
Piece : add setHead(Texture)
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/Piece.java5
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);
}