![]() |
Gamedev Framework (gf)
0.17.0
A C++14 framework for 2D games
|
The properties for TMX entities. More...
#include <gf/Tmx.h>
Public Member Functions | |
| TmxProperties ()=default | |
| Default constructor. More... | |
| TmxProperties (TmxProperties &&)=default | |
| Default move constructor. More... | |
| TmxProperties & | operator= (TmxProperties &&)=default |
| Default move assignment. More... | |
| void | addStringProperty (std::string name, std::string value) |
| Add a string property. More... | |
| void | addIntProperty (std::string name, int value) |
| Add an integer property. More... | |
| void | addFloatProperty (std::string name, double value) |
| Add a float property. More... | |
| void | addBoolProperty (std::string name, bool value) |
| Add a boolean property. More... | |
| void | addColorProperty (std::string name, Color4u value) |
| Add a color property. More... | |
| void | addFileProperty (std::string name, Path value) |
| Add a file property. More... | |
| std::string | getStringProperty (const std::string &name, const std::string &def) const |
| Get a string property. More... | |
| int | getIntProperty (const std::string &name, int def) const |
| Get an integer property. More... | |
| double | getFloatProperty (const std::string &name, double def) const |
| Get a float property. More... | |
| bool | getBoolProperty (const std::string &name, bool def) const |
| Get a boolean property. More... | |
| Color4u | getColorProperty (const std::string &name, const Color4u &def) const |
| Get a color property. More... | |
| Path | getFileProperty (const std::string &name, const Path &def) const |
| Get a file property. More... | |
The properties for TMX entities.
|
default |
Default constructor.
|
default |
Default move constructor.
| void gf::TmxProperties::addBoolProperty | ( | std::string | name, |
| bool | value | ||
| ) |
Add a boolean property.
| name | The name of the property |
| value | The value of the property |
| void gf::TmxProperties::addColorProperty | ( | std::string | name, |
| Color4u | value | ||
| ) |
Add a color property.
| name | The name of the property |
| value | The value of the property |
| void gf::TmxProperties::addFileProperty | ( | std::string | name, |
| Path | value | ||
| ) |
Add a file property.
| name | The name of the property |
| value | The value of the property |
| void gf::TmxProperties::addFloatProperty | ( | std::string | name, |
| double | value | ||
| ) |
Add a float property.
| name | The name of the property |
| value | The value of the property |
| void gf::TmxProperties::addIntProperty | ( | std::string | name, |
| int | value | ||
| ) |
Add an integer property.
| name | The name of the property |
| value | The value of the property |
| void gf::TmxProperties::addStringProperty | ( | std::string | name, |
| std::string | value | ||
| ) |
Add a string property.
| name | The name of the property |
| value | The value of the property |
| bool gf::TmxProperties::getBoolProperty | ( | const std::string & | name, |
| bool | def | ||
| ) | const |
Get a boolean property.
| name | The name of the property |
| def | The default value if the property does not exist |
Get a color property.
| name | The name of the property |
| def | The default value if the property does not exist |
Get a file property.
| name | The name of the property |
| def | The default value if the property does not exist |
| double gf::TmxProperties::getFloatProperty | ( | const std::string & | name, |
| double | def | ||
| ) | const |
Get a float property.
| name | The name of the property |
| def | The default value if the property does not exist |
| int gf::TmxProperties::getIntProperty | ( | const std::string & | name, |
| int | def | ||
| ) | const |
Get an integer property.
| name | The name of the property |
| def | The default value if the property does not exist |
| std::string gf::TmxProperties::getStringProperty | ( | const std::string & | name, |
| const std::string & | def | ||
| ) | const |
Get a string property.
| name | The name of the property |
| def | The default value if the property does not exist |
|
default |
Default move assignment.
1.8.13