NasNas
An intuitive and beginner friendly 2D game framework for C++
Public Member Functions | Protected Member Functions | List of all members
ns::tm::LayersContainer Class Reference
Inheritance diagram for ns::tm::LayersContainer:
ns::tm::GroupLayer ns::tm::TiledMap

Public Member Functions

auto hasLayer (const std::string &name) const -> bool
 
auto getTileLayer (const std::string &name) const -> TileLayer &
 
auto getObjectLayer (const std::string &name) const -> ObjectLayer &
 
auto getImageLayer (const std::string &name) const -> ImageLayer &
 
auto getGroupLayer (const std::string &name) const -> GroupLayer &
 
void update (const Camera *cam)
 

Protected Member Functions

void parseLayers (const pugi::xml_node &xml_node, TiledMap *tiledmap)
 
auto addTileLayer (const pugi::xml_node &xml_node, TiledMap *tiledmap) -> Layer *
 
auto addObjectLayer (const pugi::xml_node &xml_node, TiledMap *tiledmap) -> Layer *
 
auto addImageLayer (const pugi::xml_node &xml_node, TiledMap *tiledmap) -> Layer *
 
auto addGroupLayer (const pugi::xml_node &xml_node, TiledMap *tiledmap) -> Layer *
 
auto allTileLayers () const -> const decltype(m_tilelayers)&
 
auto allObjectLayers () const -> const decltype(m_objectlayers)&
 
auto allImageLayers () const -> const decltype(m_imagelayers)&
 
auto allGroupLayers () const -> const decltype(m_grouplayers)&
 
auto allLayers () const -> const decltype(m_layers)&
 

Detailed Description

Definition at line 25 of file LayersContainer.hpp.


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