Contains all information about a map in easy-to-use format. More...
#include <Map.h>
Public Member Functions | |
Map () | |
Constructs a Map object without input. | |
Map (std::map< std::string, GbxResponseParameter > serverStruct) | |
Formats a server response into a usable form. More... | |
void | MapDetailed (std::map< std::string, GbxResponseParameter > serverStruct) |
Formats a server response into a usable form. More... | |
void | CopyDetailedMap (Map map) |
Copies information from map object. More... | |
void | SetId (int id) |
Set database identifier value. More... | |
void | UpdateAdditional (std::string key, boost::any value) |
Updates (or inserts) key with value. More... | |
Public Attributes | |
int | Id = 0 |
Map identifier (on database). | |
std::string | UId |
Unique map identifier. | |
std::string | Name |
Map name. | |
std::string | FileName |
File name. | |
std::string | Environment |
Game environment. | |
std::string | Author |
Login of the author. | |
int | GoldTime |
Time of the gold medal. | |
int | CopperPrice |
Copper price. | |
std::string | MapType |
Type of the map. | |
std::string | MapStyle |
Map style (self-entered). | |
std::string | Mood |
Map mood (setting). | |
int | BronzeTime |
Time of the bronze medal. | |
int | SilverTime |
Time of the silver medal. | |
int | AuthorTime |
Time set by the author. | |
bool | LapRace |
Map is multi-lap. | |
int | NbLaps |
Number of laps. | |
int | NbCheckpoints |
Number of checkpoints. | |
std::map< std::string, boost::any > | Additionals |
Additional parameters. | |
Private Member Functions | |
void | setBasicInfo (std::map< std::string, GbxResponseParameter > serverStruct) |
Sets the basic map information from the struct. More... | |
void | setDetailedInfo (std::map< std::string, GbxResponseParameter > serverStruct) |
Sets the detailed map information from the struct. More... | |
Contains all information about a map in easy-to-use format.
|
inline |
Formats a server response into a usable form.
serverStruct | The struct with map information received from the server. |
|
inline |
Copies information from map object.
map | Map object to be copied into this. |
|
inline |
Formats a server response into a usable form.
serverStruct | The struct with detailed map information received from the server. |
|
inlineprivate |
Sets the basic map information from the struct.
serverStruct | The struct with map information received from the server. |
|
inlineprivate |
Sets the detailed map information from the struct.
serverStruct | The struct with detailed map information received from the server. |
|
inline |
Set database identifier value.
id | Database ID. |
|
inline |
Updates (or inserts) key with value.
key | Additionals key. |
value | Additionals value. |