R-Type  1.0.1.0
Rewrite of the R-Type game with networking ability
Loading...
Searching...
No Matches
Map Class Reference
Inheritance diagram for Map:
[legend]
Collaboration diagram for Map:
[legend]

Public Member Functions

 Map (const std::string &path, std::shared_ptr< engine::TextureManager > &textureMng)
 
tson::TilesetgetTilesetByTileId (uint32_t id)
 
void loadMap ()
 
void loadTexture (std::shared_ptr< engine::TextureManager > &textureMng)
 
void loadTiles (tson::Layer *layer)
 

Static Public Member Functions

static sf::Vector2i getTilePosition (uint32_t id, tson::Tileset *tileset)
 

Private Member Functions

void draw (sf::RenderTarget &target, sf::RenderStates states) const override
 

Private Attributes

std::vector< Layer_layers
 
std::unique_ptr< tson::Map_map
 
std::map< std::string, std::shared_ptr< sf::Texture > > _textures
 

The documentation for this class was generated from the following files: