diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-26 23:52:10 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-26 23:52:10 +0100 |
commit | fe37e65deffa67e9f0dd738726ed553301634f20 (patch) | |
tree | 9e0e6b612a4afc892f5eb92bb44d1c6983282fec /core/src/ch/asynk/rustanddust/engine | |
parent | dca8d22acbdd6b3ffd38050e08f969384d302555 (diff) | |
download | RustAndDust-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.java | 20 |
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); + } +} |