22 this->
data.resize(
static_cast<size_t>(this->ta.
w) * this->ta.h);
31 return this->
ta.IsEmpty() || std::ranges::none_of(this->
data, [](
bool b) {
47 this->
data.resize(
static_cast<size_t>(this->ta.
w) * this->ta.h);
BitmapTileArea()=default
Construct an empty bitmap tile area.
OrthogonalTileArea ta
Underlying tile area.
std::vector< bool > data
Storage of tiles contained within the tile area.
bool IsEmpty() const
Test if this tile area is empty.
void Initialize(const OrthogonalTileArea &ta)
Initialize the BitmapTileArea with the specified OrthogonalTileArea.
Represents the covered area of e.g.
uint16_t w
The width of the area.
TileIndex tile
The base tile of the area.
uint16_t h
The height of the area.
A number of safeguards to prevent using unsafe methods.
Definition of base types and functions in a cross-platform compatible way.
Classes for storing and iterating a tile area.