30#include <tmxlite/Config.hpp>
31#include <tmxlite/Layer.hpp>
32#include <tmxlite/Types.hpp>
47 void parse(
const pugi::xml_node&,
Map*)
override;
85 std::string m_workingDir;
86 std::string m_filePath;
87 Colour m_transparencyColour;
88 bool m_hasTransparency;
98 return *
static_cast<ImageLayer*
>(
this);
105 return *
static_cast<const ImageLayer*
>(
this);
Image layers contain a single image which make up that layer. The parser contains the fully resolved ...
Definition ImageLayer.hpp:42
bool hasRepeatY() const
Returns true if the image drawn by this layer is repeated along the Y axis.
Definition ImageLayer.hpp:82
Type getType() const override
Returns a Type value representing the concrete type. Use this when deciding which conrete layer type ...
Definition ImageLayer.hpp:46
const Colour & getTransparencyColour() const
Returns the colour used by the image to represent transparent pixels. By default this is (0,...
Definition ImageLayer.hpp:59
const std::string & getImagePath() const
Returns the path, relative to the working directory, of the image used by the image layer.
Definition ImageLayer.hpp:53
const Vector2u & getImageSize() const
Returns the size of the image of the image layer in pixels.
Definition ImageLayer.hpp:70
bool hasRepeatX() const
Returns true if the image drawn by this layer is repeated along the X axis.
Definition ImageLayer.hpp:76
bool hasTransparency() const
Returns true if the image used by this layer specifically states a colour to use as transparency.
Definition ImageLayer.hpp:65
void parse(const pugi::xml_node &, Map *) override
Attempts to parse the specific node layer type.
Represents a layer of a tmx format tile map. This is an abstract base class from which all layer type...
Definition Layer.hpp:56
T & getLayerAs()
Use this to get a reference to the concrete layer type which this layer points to....
Type
Layer type as returned by getType() Tile: this layer is a TileLayer type Object: This layer is an Obj...
Definition Layer.hpp:71
virtual Type getType() const =0
Returns a Type value representing the concrete type. Use this when deciding which conrete layer type ...
Parser for TMX format tile maps. This class can be used to parse the XML format tile maps created wit...
Definition Map.hpp:94
Contains the red, green, blue and alpha values of a colour in the range 0 - 255.
Definition Types.hpp:111