10#ifndef TILEAREA_AIRPORTLAYOUT_HPP
11#define TILEAREA_AIRPORTLAYOUT_HPP
18 std::span<const AirportTileTable>
att;
19 std::span<const AirportTileTable>::iterator
iter;
46 return this->base_tile == other.
base_tile && this->tile == other.
tile;
75 if (this->iter == std::end(
att)) {
90 return this->iter->gfx;
std::ptrdiff_t difference_type
difference_type iterator trait
TileIndex operator*() const
Get the current tile.
TileIndex tile
The current file.
TileIndex base_tile
The tile we base the offsets off.
AirportGfx GetAirportGfx() const
Get the AirportGfx for the current tile.
std::span< const AirportTileTable > att
The offsets.
AirportTileTableIterator & operator++()
Increment the iterator and set it to the next position.
TileIndex value_type
value_type iterator trait
void reference
reference iterator trait
std::span< constAirportTileTable >::iterator iter
Underlying tile area.
bool operator==(const AirportTileTableIterator &other) const
Compare with other iterator.
std::forward_iterator_tag iterator_category
iterator_category iterator trait
void pointer
pointer iterator trait
bool include_special
Include special tiles.
bool operator==(const std::default_sentinel_t &) const
Compare with end sentinel.
AirportTileTableIterator(std::span< const AirportTileTable > att, TileIndex base_tile, bool include_special)
Construct the iterator.
TileIndexDiff ToTileIndexDiff(TileIndexDiffC tidc)
Return the offset between two tiles from a TileIndexDiffC struct.
NewGRF handling of airports.
uint16_t AirportGfx
Airport graphics tile.
static constexpr AirportGfx AIRPORTGFX_CLEARTILE_SPECIALCHECK
Sentinel marker in airport layout to perform a clear tile check.
StrongType::Typedef< uint32_t, struct TileIndexTag, StrongType::Compare, StrongType::Integer, StrongType::Compatible< int32_t >, StrongType::Compatible< int64_t > > TileIndex
The index/ID of a Tile.
constexpr TileIndex INVALID_TILE
The very nice invalid tile marker.