NasNas
An intuitive and beginner friendly 2D game framework for C++
GroupLayer.hpp
1 // Created by Modar Nasser on 01/07/2021.
2 
3 #pragma once
4 
5 #include <NasNas/core/data/Rect.hpp>
6 #include <NasNas/tilemapping/Layer.hpp>
7 #include <NasNas/tilemapping/LayersContainer.hpp>
8 
9 namespace ns::tm {
10 
11  class GroupLayer : public Layer, public LayersContainer {
12  public:
13  GroupLayer(const pugi::xml_node& xml_node, TiledMap* tiledmap);
14 
15  auto getGlobalBounds() const -> ns::FloatRect override;
16 
17  private:
18  void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
19  };
20 
21 }