summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-21 03:47:27 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-21 03:47:27 +0200
commitf4e49f103cb6a4ac1c62b20d1d369fcfa965c2a9 (patch)
treec92201c94dd1796019a5d9e6948f4848593acb08 /core/src/ch/asynk/tankontank/engine
parentef5ddce27cc4c24fd7278f55613633be62a8e3ae (diff)
downloadRustAndDust-f4e49f103cb6a4ac1c62b20d1d369fcfa965c2a9.zip
RustAndDust-f4e49f103cb6a4ac1c62b20d1d369fcfa965c2a9.tar.gz
ooops again, forgot to add StackedSpriteNode#isEnabled()
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-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)
{