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

Public Member Functions

 ObjectLayer (const pugi::xml_node &xml_node, TiledMap *tiledmap)
 
auto getObjectsWithType (const std::string &type) const -> const std::vector< std::reference_wrapper< Object >> &
 
auto getObjectsWithName (const std::string &name) const -> const std::vector< std::reference_wrapper< Object >> &
 
auto allPoints () const -> const std::vector< PointObject > &
 
auto allRectangles () const -> const std::vector< RectangleObject > &
 
auto allEllipses () const -> const std::vector< EllipseObject > &
 
auto allPolylines () const -> const std::vector< PolylineObject > &
 
auto allPolygons () const -> const std::vector< PolygonObject > &
 
auto getPoint (unsigned int id) const -> const PointObject &
 
auto getRectangle (unsigned int id) const -> const RectangleObject &
 
auto getEllipse (unsigned int id) const -> const EllipseObject &
 
auto getPolyline (unsigned int id) const -> const PolylineObject &
 
auto getPolygon (unsigned int id) const -> const PolygonObject &
 
- 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 &
 
virtual auto getGlobalBounds () const -> ns::FloatRect
 
- 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
 

Additional Inherited Members

- Protected Member Functions inherited from ns::tm::PropertiesContainer
void parseProperties (const pugi::xml_node &xmlnode_props)
 
- Protected Attributes inherited from ns::tm::Layer
const TiledMapm_tiledmap = nullptr
 
const GroupLayerm_parent_group = nullptr
 

Detailed Description

Definition at line 16 of file ObjectLayer.hpp.


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