![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
A layer with objects. More...
#include <gf/Tmx.h>
Public Member Functions | |
void | accept (const TmxLayers &map, TmxVisitor &visitor) const override |
Accept function in the visitor pattern. More... | |
![]() | |
virtual | ~TmxLayer () |
Destructor. More... | |
virtual void | accept (const TmxLayers &map, TmxVisitor &visitor) const =0 |
Accept function in the visitor pattern. More... | |
Public Attributes | |
Color4u | color |
The color of the objects. More... | |
TmxDrawOrder | drawOrder |
The draw order of the objects. More... | |
std::vector< std::unique_ptr< TmxObject > > | objects |
The objects of the layer. More... | |
![]() | |
TmxProperties | properties |
The properties of the layer. More... | |
std::string | name |
The name of the layer. More... | |
double | opacity |
The opacity of the layer. More... | |
bool | visible |
The visibility of the layer. More... | |
Vector2i | offset |
The offset of the layer. More... | |
A layer with objects.
|
overridevirtual |
Accept function in the visitor pattern.
map | The containing map |
visitor | The visitor |
Implements gf::TmxLayer.
Color4u gf::TmxObjectLayer::color |
The color of the objects.
TmxDrawOrder gf::TmxObjectLayer::drawOrder |
The draw order of the objects.
std::vector<std::unique_ptr<TmxObject> > gf::TmxObjectLayer::objects |
The objects of the layer.