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

A layer with objects. More...

#include <gf/Tmx.h>

Inheritance diagram for gf::TmxObjectLayer:
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

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...
- 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 objects.

Member Function Documentation

◆ accept()

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

◆ color

Color4u gf::TmxObjectLayer::color

The color of the objects.

◆ drawOrder

TmxDrawOrder gf::TmxObjectLayer::drawOrder

The draw order of the objects.

◆ objects

std::vector<std::unique_ptr<TmxObject> > gf::TmxObjectLayer::objects

The objects of the layer.