summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/engine/TileSet.java
blob: bd620b298e49b27d3683e44c23d1a9fefe81f6f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package ch.asynk.rustanddust.engine;

import ch.asynk.rustanddust.engine.util.IterableSet;

public class TileSet extends IterableSet<Tile>
{
    protected 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);
    }
}