From e8a50d3fda9132df94b988494d0153ba5f17a9b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 24 Sep 2014 23:51:14 +0200 Subject: translate params are dx, dy --- core/src/ch/asynk/tankontank/engine/Pawn.java | 6 +++--- core/src/ch/asynk/tankontank/engine/Tile.java | 4 ++-- 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); } } -- cgit v1.1-2-g2b99