NasNas
An intuitive and beginner friendly 2D game framework for C++
|
Public Member Functions | |
TileLayer (const pugi::xml_node &xml_node, TiledMap *tiledmap) | |
auto | getTile (int x, int y) const -> const std::optional< Tile > & |
auto | getTile (sf::Vector2i pos) const -> const std::optional< Tile > & |
void | setTile (int x, int y, std::uint32_t gid) |
void | update () |
![]() | |
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 & |
virtual auto | getGlobalBounds () const -> ns::FloatRect |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
void | parseProperties (const pugi::xml_node &xmlnode_props) |
![]() | |
const TiledMap * | m_tiledmap = nullptr |
const GroupLayer * | m_parent_group = nullptr |
Definition at line 28 of file TileLayer.hpp.