MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / HasTile

Method HasTile

src/bitmap_type.h:99–102  ·  view source on GitHub ↗

* Test if a tile is part of the tile area. * @param tile Tile to check */

Source from the content-addressed store, hash-verified

97 * @param tile Tile to check
98 */
99 inline bool HasTile(TileIndex tile) const
100 {
101 return this->Contains(tile) && this->data[Index(tile)];
102 }
103};
104
105/** Iterator to iterate over all tiles belonging to a bitmaptilearea. */

Callers 3

BitmapTileIteratorMethod · 0.80
BitmapTileIteratorClass · 0.80
TileIsInCatchmentMethod · 0.80

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected