Class for managing saved Grand-Prix's A list of all possible resumable GP's is stored in the user config.
More...
|
|
| SavedGrandPrix (unsigned int player_id, const std::string &gp_id, RaceManager::MinorRaceModeType race_type, RaceManager::Difficulty difficulty, int player_karts, int last_track, int reverse_type, int skipped_tracks, float time_target, int player_total_laps, const std::vector< RaceManager::KartStatus > &kart_list) |
| | Constructor to create a new entry.
|
| |
|
| SavedGrandPrix (const XMLNode *node) |
| | Constructor to deserialize a entry that was saved to a XML file.
|
| |
|
void | setKarts (const std::vector< RaceManager::KartStatus > &kart_list) |
| |
|
void | clearKarts () |
| |
|
void | loadKarts (std::vector< RaceManager::KartStatus > &kart_list) |
| |
|
unsigned int | getPlayerID () const |
| | Returns the player id for this saved GP.
|
| |
|
std::string | getGPID () const |
| | Returns the grand prix id.
|
| |
|
int | getRaceType () const |
| | Returns the race type of this GP.
|
| |
|
int | getDifficulty () const |
| | Returns the difficulty of this GP.
|
| |
|
int | getTotalKarts () const |
| | Returns the total number of karts of this GP.
|
| |
|
int | getPlayerKarts () const |
| | Returns the number of player karts in this GP.
|
| |
|
int | getNextTrack () const |
| | Returns the index of the last track finished when this GP was saved.
|
| |
|
int | getReverseType () const |
| | Returns the reverse Type.
|
| |
|
int | getSkippedTracks () const |
| | Returns skipped tracks count.
|
| |
|
float | getTimeTarget () const |
| | Returns time target used in Lap Trial mode.
|
| |
|
void | setNextTrack (int next_track) |
| | Sets the index of the last track finished.
|
| |
|
void | remove () |
| | Removed this SavedGrandPrix from the list of all SavedGrandPrix, and deletes it.
|
| |
Class for managing saved Grand-Prix's A list of all possible resumable GP's is stored in the user config.