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

A layer with an image. More...

#include <gf/Tmx.h>

Inheritance diagram for gf::TmxImageLayer:
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::unique_ptr< TmxImageimage
 The image 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 an image.

Member Function Documentation

◆ accept()

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

◆ image

std::unique_ptr<TmxImage> gf::TmxImageLayer::image

The image of the layer.