19#ifndef HEADER_SAVED_GRAND_PRIX_HPP
20#define HEADER_SAVED_GRAND_PRIX_HPP
22#include "config/user_config.hpp"
23#include "race/race_manager.hpp"
24#include "utils/ptr_vector.hpp"
51 const std::string &ident,
102 const std::string &gp_id,
110 int player_total_laps,
111 const std::vector<RaceManager::KartStatus> &kart_list);
117 void setKarts(
const std::vector<RaceManager::KartStatus> &kart_list);
119 void loadKarts(std::vector<RaceManager::KartStatus> & kart_list);
182 const std::string &gpid,
184 const unsigned int number_of_players)
Definition: user_config.hpp:329
Definition: user_config.hpp:85
Definition: user_config.hpp:194
Definition: ptr_vector.hpp:44
The race manager has two functions: 1) it stores information about the race the user selected (e....
Definition: race_manager.hpp:88
MinorRaceModeType
Minor variants to the major types of race.
Definition: race_manager.hpp:110
Difficulty
Game difficulty.
Definition: race_manager.hpp:230
Definition: saved_grand_prix.hpp:42
Class for managing saved Grand-Prix's A list of all possible resumable GP's is stored in the user con...
Definition: saved_grand_prix.hpp:39
IntUserConfigParam m_difficulty
Difficulty at which this GP was run.
Definition: saved_grand_prix.hpp:74
IntUserConfigParam m_player_total_laps
Total laps count, used in Lap Trial mode.
Definition: saved_grand_prix.hpp:92
int getReverseType() const
Returns the reverse Type.
Definition: saved_grand_prix.hpp:151
std::string getGPID() const
Returns the grand prix id.
Definition: saved_grand_prix.hpp:127
float getTimeTarget() const
Returns time target used in Lap Trial mode.
Definition: saved_grand_prix.hpp:159
IntUserConfigParam m_race_type
Race type at which this GP was run.
Definition: saved_grand_prix.hpp:71
IntUserConfigParam m_player_karts
Number of player karts used in this GP.
Definition: saved_grand_prix.hpp:77
IntUserConfigParam m_next_track
Index of the next to run track.
Definition: saved_grand_prix.hpp:80
int getRaceType() const
Returns the race type of this GP.
Definition: saved_grand_prix.hpp:131
IntUserConfigParam m_skipped_tracks
Count of tracks that player skipped.
Definition: saved_grand_prix.hpp:86
IntUserConfigParam m_reverse_type
GPReverseType of the GP as int.
Definition: saved_grand_prix.hpp:83
int getTotalKarts() const
Returns the total number of karts of this GP.
Definition: saved_grand_prix.hpp:139
FloatUserConfigParam m_time_target
Time target used in Lap Trial mode.
Definition: saved_grand_prix.hpp:89
int getDifficulty() const
Returns the difficulty of this GP.
Definition: saved_grand_prix.hpp:135
GroupUserConfigParam m_savedgp_group
For saving to config file.
Definition: saved_grand_prix.hpp:64
int getPlayerTotalLaps() const
Returns total laps in GP.
Definition: saved_grand_prix.hpp:163
int getSkippedTracks() const
Returns skipped tracks count.
Definition: saved_grand_prix.hpp:155
static SavedGrandPrix * getSavedGP(unsigned int player, const std::string &gpid, RaceManager::MinorRaceModeType race_type, const unsigned int number_of_players)
Finds the right SavedGrandPrix given the specified data, or NULL if no matching GP was found.
Definition: saved_grand_prix.hpp:181
unsigned int getPlayerID() const
Returns the player id for this saved GP.
Definition: saved_grand_prix.hpp:123
int getPlayerKarts() const
Returns the number of player karts in this GP.
Definition: saved_grand_prix.hpp:143
void remove()
Removed this SavedGrandPrix from the list of all SavedGrandPrix, and deletes it.
Definition: saved_grand_prix.hpp:172
void setNextTrack(int next_track)
Sets the index of the last track finished.
Definition: saved_grand_prix.hpp:167
StringUserConfigParam m_gp_id
Identifier of this GP.
Definition: saved_grand_prix.hpp:68
int getNextTrack() const
Returns the index of the last track finished when this GP was saved.
Definition: saved_grand_prix.hpp:147
Definition: user_config.hpp:256
utility class used to parse XML files
Definition: xml_node.hpp:48
PARAM_PREFIX PtrVector< SavedGrandPrix > m_saved_grand_prix_list
List of all saved GPs.
Definition: user_config.hpp:1389