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

A layer with tiles in cells. More...

#include <gf/Tmx.h>

Inheritance diagram for gf::TmxTileLayer:
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< TmxCellcells
 The cells of the layer. 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 tiles in cells.

Member Function Documentation

◆ accept()

virtual void gf::TmxTileLayer::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

◆ cells

std::vector<TmxCell> gf::TmxTileLayer::cells

The cells of the layer.