add TileSet.contains(Tile)
This commit is contained in:
parent
68cd2f345a
commit
4ccc8ed147
@ -106,4 +106,12 @@ public final class TileSet {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean contains(MapTile t) {
|
||||
for (int i = 0; i < cnt; i++)
|
||||
if (tiles[i].equals(t))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user