libtmx  0.4.0
an C++11 library for reading TMX files
Public Member Functions | List of all members
tmx::LayerVisitor Class Reference

A layer visitor is a visitor for layers in the visitor pattern. More...

#include <tmx/LayerVisitor.h>

Public Member Functions

virtual ~LayerVisitor ()
 LayerVisitor destructor. More...
 
virtual void visitTileLayer (const Map &map, const TileLayer &layer)
 Visit a tile layer. More...
 
virtual void visitObjectLayer (const Map &map, const ObjectLayer &layer)
 Visit an object layer. More...
 
virtual void visitImageLayer (const Map &map, const ImageLayer &layer)
 Visit an image layer. More...
 

Detailed Description

A layer visitor is a visitor for layers in the visitor pattern.

Constructor & Destructor Documentation

virtual tmx::LayerVisitor::~LayerVisitor ( )
virtual

LayerVisitor destructor.

Member Function Documentation

virtual void tmx::LayerVisitor::visitImageLayer ( const Map map,
const ImageLayer layer 
)
virtual

Visit an image layer.

Parameters
layerthe image layer
virtual void tmx::LayerVisitor::visitObjectLayer ( const Map map,
const ObjectLayer layer 
)
virtual

Visit an object layer.

Parameters
layerthe object layer
virtual void tmx::LayerVisitor::visitTileLayer ( const Map map,
const TileLayer layer 
)
virtual

Visit a tile layer.

Parameters
layerthe tile layer