NasNas
An intuitive and beginner friendly 2D game framework for C++
|
Public Member Functions | |
GroupLayer (const pugi::xml_node &xml_node, TiledMap *tiledmap) | |
auto | getGlobalBounds () const -> ns::FloatRect override |
![]() | |
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 & |
![]() | |
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 |
![]() | |
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 | |
![]() | |
void | parseProperties (const pugi::xml_node &xmlnode_props) |
![]() | |
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)& |
![]() | |
const TiledMap * | m_tiledmap = nullptr |
const GroupLayer * | m_parent_group = nullptr |
Definition at line 11 of file GroupLayer.hpp.