|
| TileMap (_CreateTileMap) |
| Do not call directly, to construct a tileMap use createTileMap()
|
|
const PhysicsTileProperties & | getPhysicsTileProperties (const glm::i32vec2 &tilePos) const |
| Returns the physical properties of a tile located at tilePos .
|
|
TileProperties< TileType > & | getTileProperties (const glm::i32vec2 &tilePos) |
| Returns the properties of a tile located at tilePos .
|
|
void | beginBulkInsert () |
| Used to speed up the insert of a large amount of tiles. To use for speed up, call before inserting a large amount of tiles. Once the wanted amount of tiles has been inserted, endBulkInsert() MUST be called.
|
|
void | endBulkInsert () |
| Used to speed up the insert of a large amount of tiles. To use for speed up, call after inserting a large amount of tiles. Before the wanted amount of tiles has been inserted, beginBulkInsert() MUST be called.
|
|
void | beginBulkErase () |
| Used to speed up the erasure of a large amount of tiles. To use for speed up, call before erasing a large amount of tiles. After the wanted amount of tiles has been inserted, endBulkErase() MUST be called.
|
|
void | endBulkErase () |
| Used to speed up the erasure of a large amount of tiles. To use for speed up, call after erasing a large amount of tiles. Before the wanted amount of tiles has been inserted, beginBulkErase() MUST be called.
|
|
bool | addTile (const glm::i32vec2 &pos, const TileProperties< TileType > &props, const PhysicsTileProperties &physicsProperties={}) |
| Adds a tile at pos with the properties of props and the physics properties set to physicsProperties . If a tile already exists in that position, no change will be made.
|
|
bool | removeTile (const glm::i32vec2 &pos) noexcept |
| Removes a tile at pos .
|
|
glm::u16vec2 | getTileDimensions (const glm::i32vec2 &pos) const |
| Returns the tile dimensions of the tile located at pos .
|
|
vec2 | getRealTileDimensions (const glm::i32vec2 &pos) const |
| Returns the REAL tile dimensions, meaning world dimensions, of the tile located at pos .
|
|
size_t | count () const |
| Returns the amount of tiles, including the sub-tiles of multi-tiles.
|
|
TileBody< TileType > & | body () |
| Returns the rigid body attached to this tile map.
|
|
Iterator | begin () |
|
Iterator | end () |
|