summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/engine
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-26 23:52:10 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-26 23:52:10 +0100
commitfe37e65deffa67e9f0dd738726ed553301634f20 (patch)
tree9e0e6b612a4afc892f5eb92bb44d1c6983282fec /core/src/ch/asynk/rustanddust/engine
parentdca8d22acbdd6b3ffd38050e08f969384d302555 (diff)
downloadRustAndDust-fe37e65deffa67e9f0dd738726ed553301634f20.zip
RustAndDust-fe37e65deffa67e9f0dd738726ed553301634f20.tar.gz
game:HexSet -> engine:TileSet
Diffstat (limited to 'core/src/ch/asynk/rustanddust/engine')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/TileSet.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/TileSet.java b/core/src/ch/asynk/rustanddust/engine/TileSet.java
new file mode 100644
index 0000000..76fa3a1
--- /dev/null
+++ b/core/src/ch/asynk/rustanddust/engine/TileSet.java
@@ -0,0 +1,20 @@
+package ch.asynk.rustanddust.engine;
+
+import java.util.LinkedHashSet;
+
+public class TileSet extends LinkedHashSet<Tile>
+{
+ private final Board board;
+
+ public TileSet(Board board, int n)
+ {
+ super(n);
+ this.board = board;
+ }
+
+ public void enable(int i, boolean enable)
+ {
+ for (Tile tile : this)
+ board.enableOverlayOn(tile, i, enable);
+ }
+}