diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Pawn.java | 6 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Tile.java | 4 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java index f5304c7..695cadd 100644 --- a/core/src/ch/asynk/tankontank/engine/Pawn.java +++ b/core/src/ch/asynk/tankontank/engine/Pawn.java @@ -92,10 +92,10 @@ public abstract class Pawn extends Image implements Disposable } @Override - public void translate(float x, float y) + public void translate(float dx, float dy) { - super.translate(x, y); - if (overlays != null) overlays.translate(x, y); + super.translate(dx, dy); + if (overlays != null) overlays.translate(dx, dy); } @Override diff --git a/core/src/ch/asynk/tankontank/engine/Tile.java b/core/src/ch/asynk/tankontank/engine/Tile.java index f243460..483dc62 100644 --- a/core/src/ch/asynk/tankontank/engine/Tile.java +++ b/core/src/ch/asynk/tankontank/engine/Tile.java @@ -76,9 +76,9 @@ public abstract class Tile implements BasicDrawable } @Override - public void translate(float x, float y) + public void translate(float dx, float dy) { - overlays.translate(x, y); + overlays.translate(dx, dy); } @Override diff --git a/core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java b/core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java index 70d30b8..dc4e517 100644 --- a/core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java +++ b/core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java @@ -36,10 +36,10 @@ public class StackedImages implements BasicDrawable } @Override - public void translate(float x, float y) + public void translate(float dx, float dy) { for (int i = 0; i < sprites.size; i++) { - sprites.get(i).translate(x, y); + sprites.get(i).translate(dx, dy); } } |