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

Public Member Functions

 GroupLayer (const pugi::xml_node &xml_node, TiledMap *tiledmap)
 
auto getGlobalBounds () const -> ns::FloatRect override
 
- Public Member Functions inherited from ns::tm::Layer
 Layer (const pugi::xml_node &xml_node, TiledMap *tiledmap)
 
auto getId () const -> unsigned int
 
auto getName () const -> const std::string &
 
auto isVisible () const -> bool
 
void setVisible (bool value)
 
auto getOffset () const -> const sf::Vector2f &
 
auto getTotalOffset () const -> sf::Vector2f
 
auto getParallaxFactor () const -> const sf::Vector2f &
 
auto getTotalParallaxFactor () const -> sf::Vector2f
 
auto getTintColor () const -> const sf::Color &
 
- Public Member Functions inherited from ns::tm::PropertiesContainer
auto hasProperty (const std::string &name) const -> bool
 
template<typename T >
auto getProperty (const std::string &name) const -> const T &
 
template<typename T >
void addProperty (const std::string &name, const T &value)
 
void printProperties () const
 
- Public Member Functions inherited from ns::tm::LayersContainer
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)
 

Additional Inherited Members

- Protected Member Functions inherited from ns::tm::PropertiesContainer
void parseProperties (const pugi::xml_node &xmlnode_props)
 
- Protected Member Functions inherited from ns::tm::LayersContainer
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)&
 
- Protected Attributes inherited from ns::tm::Layer
const TiledMapm_tiledmap = nullptr
 
const GroupLayerm_parent_group = nullptr
 

Detailed Description

Definition at line 11 of file GroupLayer.hpp.


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