summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine/gfx
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-12-17 16:16:38 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-12-17 16:16:38 +0100
commitb525ed807067c70af353ef8beca34135986e8bc3 (patch)
tree4f07592bfb91a47a67919240d2bbf7ca4ad707d9 /core/src/ch/asynk/tankontank/engine/gfx
parent3bfd070fdc21812b2ffb8d29503a9597e0fa14ce (diff)
downloadRustAndDust-b525ed807067c70af353ef8beca34135986e8bc3.zip
RustAndDust-b525ed807067c70af353ef8beca34135986e8bc3.tar.gz
DiceAnimation: add translate(), remove set(int, float, float)
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine/gfx')
-rw-r--r--core/src/ch/asynk/tankontank/engine/gfx/animations/DiceAnimation.java13
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;