diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/gfx/animations/DiceAnimation.java | 13 |
1 files 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; |