tile2d
|
Defines TileMap<> and TileBody<> More...
#include "body.hpp"
Go to the source code of this file.
Classes | |
class | TileProperties< T > |
Contains the data of a tile or multi tile. More... | |
class | PhysicsTileProperties |
Contains the physical properties of a tile, such as elasticity. More... | |
struct | _CreateTileMap |
class | TileMap< TileType > |
class | TileMap< TileType >::Iterator |
Allows iteration of tiles with for loops/. More... | |
class | TileBody< TileType > |
For use with a TileMap<>, allows collisions with other rigid bodies inside World<> More... | |
class | TileBody< TileType >::SpatialIndex |
A spatial index where pos may point towards a chunk or tile. More... | |
struct | CreateTileMap< TileType, TileMapAllocator, PhysicsWorld > |
Functions | |
template<class TileType , class TileMapAllocator , class PhysicsWorld > | |
std::pair< TileMap< TileType > *, WorldBody * > | createTileMap (TileMapAllocator &tileMapAllocator, PhysicsWorld &physicsWorld) |
Creates a tile map and a tile body using tileMapAllocator for the tileMap and the physicsWorld for the tile body. | |
Defines TileMap<> and TileBody<>
std::pair< TileMap< TileType > *, WorldBody * > createTileMap | ( | TileMapAllocator & | tileMapAllocator, |
PhysicsWorld & | physicsWorld ) |
Creates a tile map and a tile body using tileMapAllocator
for the tileMap and the physicsWorld
for the tile body.
tileMapAllocator | An allocator used to create the tile map, MUST have a construct<>() method defined |
physicsWorld | A physicsWorld used to create the tile body, MUST be t2d::World<> |