Gamedev Framework (gf)  0.11.0
A C++14 framework for 2D games
Public Member Functions | Public Attributes | List of all members
gf::TmxGroupLayer Struct Reference

A layer with other layers. More...

#include <gf/Tmx.h>

Inheritance diagram for gf::TmxGroupLayer:
Inheritance graph

Public Member Functions

virtual void accept (const TmxLayers &map, TmxVisitor &visitor) const override
 Accept function in the visitor pattern. More...
- Public Member Functions inherited from gf::TmxLayer
virtual ~TmxLayer ()
 Destructor. More...

Public Attributes

std::vector< std::unique_ptr< TmxLayer > > layers
 The other layers. More...
- Public Attributes inherited from gf::TmxLayer
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...

Detailed Description

A layer with other layers.

Member Function Documentation

◆ accept()

virtual void gf::TmxGroupLayer::accept ( const TmxLayers map,
TmxVisitor visitor 
) const

Accept function in the visitor pattern.

mapThe containing map
visitorThe visitor
See also
Wikipedia - Visitor pattern

Implements gf::TmxLayer.

Member Data Documentation

◆ layers

std::vector<std::unique_ptr<TmxLayer> > gf::TmxGroupLayer::layers

The other layers.