libtmx
0.4.0
an C++11 library for reading TMX files
|
A terrain describes a kind of terrain on the map. More...
#include <tmx/Terrain.h>
Public Member Functions | |
Terrain (const std::string &name, unsigned tile) | |
Terrain constructor. More... | |
const std::string & | getName () const noexcept |
Get the name of the terrain. More... | |
unsigned | getTile () const noexcept |
Get the representing tile for the terrain. More... | |
Public Member Functions inherited from tmx::Component | |
bool | hasProperty (const std::string &key) const noexcept |
Tell if the object has a given property. More... | |
const std::string & | getProperty (const std::string &key, const std::string &def) const noexcept |
Get a property value. More... | |
bool | addProperty (const std::string &key, const std::string &value) |
Add a property. More... | |
A terrain describes a kind of terrain on the map.
|
inline |
Terrain constructor.
|
inlinenoexcept |
Get the name of the terrain.
|
inlinenoexcept |
Get the representing tile for the terrain.