summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine/gfx
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-23 17:12:11 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-23 17:12:11 +0200
commitca172c2ab35280a27a89ce1da1bfebca4923b849 (patch)
tree4d0fc463097cc4c859922dce9a5461f05f1d42cc /core/src/ch/asynk/tankontank/engine/gfx
parenta2fdafa229cadee934b11b492916bf2d8131eba5 (diff)
downloadRustAndDust-ca172c2ab35280a27a89ce1da1bfebca4923b849.zip
RustAndDust-ca172c2ab35280a27a89ce1da1bfebca4923b849.tar.gz
implement clear overlays in Board/Tile/StackImage
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine/gfx')
-rw-r--r--core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java b/core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java
index 5eb5e55..70d30b8 100644
--- a/core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java
+++ b/core/src/ch/asynk/tankontank/engine/gfx/StackedImages.java
@@ -17,6 +17,12 @@ public class StackedImages implements BasicDrawable
this.enabled = new boolean[sprites.size];
}
+ public void clear()
+ {
+ for (int i = 0; i < sprites.size; i++)
+ enabled[i] = false;
+ }
+
public void enable(int i, boolean enable)
{
enabled[i] = enable;