|
| AutotileSet (const std::vector< Autotile *> &autotiles, uint32_t default_tile, const std::string &name, bool corner) |
|
uint32_t | get_autotile (uint32_t tile_id, bool top_left, bool top, bool top_right, bool left, bool center, bool right, bool bottom_left, bool bottom, bool bottom_right, int x, int y) const |
| Returns the ID of the tile to use, based on the surrounding tiles. More...
|
|
uint32_t | get_default_tile () const |
| Returns the id of the first block in the autotileset. More...
|
|
bool | is_member (uint32_t tile_id) const |
| true if the given tile is present in the autotileset
|
|
bool | is_solid (uint32_t tile_id) const |
| true if is_member() is true AND the "center" bool is true
|
|
bool | is_corner () const |
| true if this is a corner-based autotileset
|
|
uint8_t | get_mask_from_tile (uint32_t tile) const |
| Returns the first mask corresponding to the current tile (useful for corners-based autotilesets)
|
|
void | validate () const |
|
|
static std::vector< std::unique_ptr< AutotileSet > > | m_autotilesets |
|
◆ get_autotile()
uint32_t AutotileSet::get_autotile |
( |
uint32_t |
tile_id, |
|
|
bool |
top_left, |
|
|
bool |
top, |
|
|
bool |
top_right, |
|
|
bool |
left, |
|
|
bool |
center, |
|
|
bool |
right, |
|
|
bool |
bottom_left, |
|
|
bool |
bottom, |
|
|
bool |
bottom_right, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| const |
Returns the ID of the tile to use, based on the surrounding tiles.
If the autotileset is corner-based, the top, left, right, bottom and center attributes are ignored.
◆ get_default_tile()
uint32_t AutotileSet::get_default_tile |
( |
| ) |
const |
|
inline |
Returns the id of the first block in the autotileset.
Used for erronous configs.
The documentation for this class was generated from the following files: