NasNas
An intuitive and beginner friendly 2D game framework for C++
include
NasNas
tilemapping
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
}
ns::tm::Layer
Definition:
tilemapping/Layer.hpp:23
ns::Rect< float >
ns::tm::TiledMap
Definition:
TiledMap.hpp:23
ns::tm::GroupLayer
Definition:
GroupLayer.hpp:11
ns::tm::LayersContainer
Definition:
LayersContainer.hpp:25
ns::tm
Definition:
GroupLayer.hpp:9
Generated by
1.8.13