summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/engine/gfx/StackedSpriteNode.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/gfx/StackedSpriteNode.java b/core/src/ch/asynk/tankontank/engine/gfx/StackedSpriteNode.java
index f3f840b..39baeca 100644
--- a/core/src/ch/asynk/tankontank/engine/gfx/StackedSpriteNode.java
+++ b/core/src/ch/asynk/tankontank/engine/gfx/StackedSpriteNode.java
@@ -22,6 +22,13 @@ public class StackedSpriteNode implements BasicDrawable
enabled[i] = enable;
}
+ public boolean isEnabled()
+ {
+ for (int i = 0; i < sprites.size; i++)
+ if (enabled[i]) return true;
+ return false;
+ }
+
@Override
public void setPosition(float x, float y, float r)
{