summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-24 23:51:14 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-24 23:51:14 +0200
commite8a50d3fda9132df94b988494d0153ba5f17a9b1 (patch)
tree7f798219ccb08b991595fedd41b5b432056b5e83 /core/src
parent86e4d41860b7aaeb37244fb09ccf07a2c2832627 (diff)
downloadRustAndDust-e8a50d3fda9132df94b988494d0153ba5f17a9b1.zip
RustAndDust-e8a50d3fda9132df94b988494d0153ba5f17a9b1.tar.gz
translate params are dx, dy
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Pawn.java6
-rw-r--r--core/src/ch/asynk/tankontank/engine/Tile.java4
-rw-r--r--core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java4
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);
}
}