Used to store a (typed) property. More...
#include <TmxProperty.h>
Public Member Functions | |
| void | Parse (const tinyxml2::XMLElement *propertyElem) |
| Parse the property element. | |
| PropertyType | GetType () const |
| Get the type of the property (default: TMX_PROPERTY_STRING) | |
| bool | IsOfType (PropertyType propertyType) const |
| Check if the property is of a certain type. | |
| const std::string & | GetValue () const |
| Return the value of the property. | |
| bool | IsValueEmpty () const |
| Return whether the value is empty or was not specified. | |
| bool | GetBoolValue (bool defaultValue=false) const |
| Convert the value to a boolean and return it (or the default value if not a boolean.) | |
| int | GetIntValue (int defaultValue=0) const |
| Convert the value to an integer and return it (or the default value if not an integer). | |
| float | GetFloatValue (float defaultValue=0.0f) const |
| Convert the value to a float and return it (or the default value if not a float). | |
| Tmx::Color | GetColorValue (Tmx::Color defaultValue=Tmx::Color()) const |
| Convert the value to a color and return it (or the default value if not a color). | |
Used to store a (typed) property.
1.8.6