diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2019-12-27 02:02:13 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2019-12-27 02:02:13 +0100 |
commit | 876fb5909fdb1924f4ee8355a0e7840911c6b9a2 (patch) | |
tree | b5af87a8e1be264ec0195c329dbd71a244485d1a | |
parent | ea5ba19d09479a11a83b54e582b1c989193b29d9 (diff) | |
download | gdx-boardgame-876fb5909fdb1924f4ee8355a0e7840911c6b9a2.zip gdx-boardgame-876fb5909fdb1924f4ee8355a0e7840911c6b9a2.tar.gz |
ui : one more step closer to Assembly's sudden death
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/ui/Assembly.java | 5 | ||||
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/ui/Element.java | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/ui/Assembly.java b/core/src/ch/asynk/gdx/boardgame/ui/Assembly.java index b2c2cec..c61f810 100644 --- a/core/src/ch/asynk/gdx/boardgame/ui/Assembly.java +++ b/core/src/ch/asynk/gdx/boardgame/ui/Assembly.java @@ -14,11 +14,6 @@ public abstract class Assembly extends Element this.children = new IterableSet<Element>(c); } - public void taintChildren() - { - children.forEach( c -> c.taint() ); - } - public Element touched() { return touched; diff --git a/core/src/ch/asynk/gdx/boardgame/ui/Element.java b/core/src/ch/asynk/gdx/boardgame/ui/Element.java index 5e28c1d..db1735d 100644 --- a/core/src/ch/asynk/gdx/boardgame/ui/Element.java +++ b/core/src/ch/asynk/gdx/boardgame/ui/Element.java @@ -100,6 +100,11 @@ public class Element implements Drawable, Paddable, Positionable, Touchable } } + public void taintChildren() + { + if (children != null) + children.forEach( c -> c.taint() ); + } @Override public void draw(Batch batch) { |