class
#include <ldtk_tile_grid_base.h>
tile_grid_base
Derived classes
-
template<bool Bloated>class tile_grid_t final
Public types
- struct tile_info
Constructors, destructors, conversion operators
-
tile_grid_base(const tile_
grid_ base&) deleted constexpr - Deleted copy constructor.
-
tile_grid_base(tile_
grid_ base&&) defaulted constexpr - Defaulted move constructor.
Public functions
-
auto operator=(const tile_
grid_ base&) -> tile_ grid_ base& deleted constexpr - Deleted copy assignment operator.
-
auto operator=(tile_
grid_ base&&) -> tile_ grid_ base& defaulted constexpr - Defaulted move assignment operator.
- auto bloated() const -> bool pure virtual constexpr
- Get whether the cell storage is bloated (
u16
) or not (u8
). -
auto cell_tile_info(int grid_x,
int grid_y) const -> tile_
info pure virtual constexpr - Get the cell tile info with the grid coordinate.
-
auto cell_tile_index(int grid_x,
int grid_y) const -> tile_
index pure virtual constexpr - Get the cell tile index with the grid coordinate.
- auto cell_tile_x_flip(int grid_x, int grid_y) const -> bool pure virtual constexpr
- Get the cell tile X flip with the grid coordinate.
- auto cell_tile_y_flip(int grid_x, int grid_y) const -> bool pure virtual constexpr
- Get the cell tile Y flip with the grid coordinate.
- auto c_size() const -> const bn::size& constexpr
- Grid-based size.
- auto c_width() const -> int constexpr
- Grid-based width.
- auto c_height() const -> int constexpr
- Grid-based height.