diff options
author | SimonIT <simonit.orig@gmail.com> | 2019-12-14 10:51:36 +0100 |
---|---|---|
committer | SimonIT <simonit.orig@gmail.com> | 2019-12-14 10:51:36 +0100 |
commit | 1d307286b482a91cc24e86a4b0053beb023a5d28 (patch) | |
tree | fba62930c5ef9d936ae5da4bc76e1dce9b6beed9 /core/src/ch/asynk/gdx/boardgame | |
parent | 6a970d009779512fea71dfad035480fc0b841a0c (diff) | |
download | gdx-boardgame-1d307286b482a91cc24e86a4b0053beb023a5d28.zip gdx-boardgame-1d307286b482a91cc24e86a4b0053beb023a5d28.tar.gz |
protected Assembly children, building on travis
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/ui/Assembly.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/ui/Element.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/ui/Assembly.java b/core/src/ch/asynk/gdx/boardgame/ui/Assembly.java index 5e71a46..b2b1e28 100644 --- a/core/src/ch/asynk/gdx/boardgame/ui/Assembly.java +++ b/core/src/ch/asynk/gdx/boardgame/ui/Assembly.java @@ -7,7 +7,7 @@ import ch.asynk.gdx.boardgame.utils.IterableSet; public abstract class Assembly extends Element { - private IterableSet<Element> children; + protected IterableSet<Element> children; private Element touched; public Assembly(int c) diff --git a/core/src/ch/asynk/gdx/boardgame/ui/Element.java b/core/src/ch/asynk/gdx/boardgame/ui/Element.java index a7a820a..abefdd5 100644 --- a/core/src/ch/asynk/gdx/boardgame/ui/Element.java +++ b/core/src/ch/asynk/gdx/boardgame/ui/Element.java @@ -97,7 +97,7 @@ public abstract class Element implements Drawable, Paddable, Positionable, Touch public final void setPosition(Rectangle r) { - setPosition(r.x, r.x, r.width, r.height); + setPosition(r.x, r.y, r.width, r.height); } @Override public final void setPosition(float x, float y) |