From b525ed807067c70af353ef8beca34135986e8bc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 17 Dec 2014 16:16:38 +0100 Subject: DiceAnimation: add translate(), remove set(int, float, float) --- .../tankontank/engine/gfx/animations/DiceAnimation.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/core/src/ch/asynk/tankontank/engine/gfx/animations/DiceAnimation.java b/core/src/ch/asynk/tankontank/engine/gfx/animations/DiceAnimation.java index 50defd6..fbedea6 100644 --- a/core/src/ch/asynk/tankontank/engine/gfx/animations/DiceAnimation.java +++ b/core/src/ch/asynk/tankontank/engine/gfx/animations/DiceAnimation.java @@ -58,6 +58,12 @@ public class DiceAnimation implements Animation, Drawable dice.dispose(); } + public void translate(float dx, float dy) + { + x += dx; + y += dy; + } + public float getX() { return x; @@ -84,13 +90,6 @@ public class DiceAnimation implements Animation, Drawable this.y = y; } - public void set(int result, float x, float y) - { - this.x = x; - this.y = y; - set(result); - } - public void set(int result) { this.frame = 0; -- cgit v1.1-2-g2b99