summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Board.java8
-rw-r--r--core/src/ch/asynk/tankontank/engine/Tile.java4
-rw-r--r--core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java2
3 files changed, 7 insertions, 7 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java
index 6616b0b..4a4aa3e 100644
--- a/core/src/ch/asynk/tankontank/engine/Board.java
+++ b/core/src/ch/asynk/tankontank/engine/Board.java
@@ -327,14 +327,14 @@ public abstract class Board extends Image implements Disposable
return areaPoints;
}
- public void clearOverlaysOn(int col, int row)
+ public void disableOverlaysOn(int col, int row)
{
- clearOverlaysOn(getTile(col, row));
+ disableOverlaysOn(getTile(col, row));
}
- public void clearOverlaysOn(Tile tile)
+ public void disableOverlaysOn(Tile tile)
{
- if (tile.clearOverlays())
+ if (tile.disableOverlays())
tilesToDraw.add(tile);
else
tilesToDraw.remove(tile);
diff --git a/core/src/ch/asynk/tankontank/engine/Tile.java b/core/src/ch/asynk/tankontank/engine/Tile.java
index 7998827..8e3ec93 100644
--- a/core/src/ch/asynk/tankontank/engine/Tile.java
+++ b/core/src/ch/asynk/tankontank/engine/Tile.java
@@ -58,9 +58,9 @@ public abstract class Tile implements BasicDrawable
return (stack.size() != 0);
}
- public boolean clearOverlays()
+ public boolean disableOverlays()
{
- overlays.clear();
+ overlays.disableAll();
return occupied();
}
diff --git a/core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java b/core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java
index 528786e..077dcef 100644
--- a/core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java
+++ b/core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java
@@ -17,7 +17,7 @@ public class StackedImages implements BasicDrawable
this.enabled = new boolean[sprites.size];
}
- public void clear()
+ public void disableAll()
{
for (int i = 0; i < sprites.size; i++)
enabled[i] = false;