NasNas
An intuitive and beginner friendly 2D game framework for C++
|
Public Member Functions | |
auto | loadFromFile (const std::string &file_name) -> bool |
auto | loadFromString (const std::string &data) -> bool |
auto | getTMXFilePath () const -> const std::string & |
auto | getSize () const -> const sf::Vector2f & |
auto | getGridSize () const -> const sf::Vector2u & |
auto | getTileSize () const -> const sf::Vector2u & |
auto | allTilesets () const -> const std::vector< Tileset > & |
auto | getTileTileset (unsigned int gid) const -> const Tileset & |
void | setCamera (const Camera &cam) |
void | update () |
![]() | |
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) |
![]() | |
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 | 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)& |
![]() | |
void | parseProperties (const pugi::xml_node &xmlnode_props) |
Definition at line 23 of file TiledMap.hpp.