|
| Autotile (uint32_t tile_id, const std::vector< std::pair< uint32_t, float >> &alt_tiles, const std::vector< AutotileMask > &masks, bool solid) |
|
bool | matches (uint8_t mask, bool center) const |
|
uint32_t | get_tile_id () const |
|
uint32_t | pick_tile (int x, int y) const |
| Picks a tile randomly amongst the possible ones for this autotile. More...
|
|
bool | is_amongst (uint32_t tile) const |
|
uint8_t | get_first_mask () const |
|
const std::vector< std::pair< uint32_t, float > > & | get_all_tile_ids () const |
| Returns all possible tiles for this autotile.
|
|
bool | is_solid () const |
| Returns true if the "center" bool of masks are true. More...
|
|
◆ get_first_mask()
uint8_t Autotile::get_first_mask |
( |
| ) |
const |
- Returns
- the first accessible mask for that autotile
◆ get_tile_id()
uint32_t Autotile::get_tile_id |
( |
| ) |
const |
|
inline |
◆ is_amongst()
bool Autotile::is_amongst |
( |
uint32_t |
tile | ) |
const |
- Returns
- true if the given tile has this tile id
◆ is_solid()
bool Autotile::is_solid |
( |
| ) |
const |
|
inline |
Returns true if the "center" bool of masks are true.
All masks of given Autotile must have the same value for their "center" property.
◆ pick_tile()
uint32_t Autotile::pick_tile |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
Picks a tile randomly amongst the possible ones for this autotile.
The documentation for this class was generated from the following files: