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)
int getRaceType() const
Returns the race type of this GP.
Definition: saved_grand_prix.hpp:131
StringUserConfigParam m_gp_id
Identifier of this GP.
Definition: saved_grand_prix.hpp:68
Difficulty
Game difficulty.
Definition: race_manager.hpp:229
void setNextTrack(int next_track)
Sets the index of the last track finished.
Definition: saved_grand_prix.hpp:167
IntUserConfigParam m_race_type
Race type at which this GP was run.
Definition: saved_grand_prix.hpp:71
IntUserConfigParam m_reverse_type
GPReverseType of the GP as int.
Definition: saved_grand_prix.hpp:83
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.
Definition: saved_grand_prix.cpp:66
GroupUserConfigParam m_savedgp_group
For saving to config file.
Definition: saved_grand_prix.hpp:64
Definition: user_config.hpp:193
int getReverseType() const
Returns the reverse Type.
Definition: saved_grand_prix.hpp:151
int getPlayerKarts() const
Returns the number of player karts in this GP.
Definition: saved_grand_prix.hpp:143
Definition: user_config.hpp:328
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
IntUserConfigParam m_skipped_tracks
Count of tracks that player skipped.
Definition: saved_grand_prix.hpp:86
IntUserConfigParam m_player_total_laps
Total laps count, used in Lap Trial mode.
Definition: saved_grand_prix.hpp:92
PARAM_PREFIX PtrVector< SavedGrandPrix > m_saved_grand_prix_list
List of all saved GPs.
Definition: user_config.hpp:1364
The race manager has two functions: 1) it stores information about the race the user selected (e...
Definition: race_manager.hpp:86
IntUserConfigParam m_next_track
Index of the next to run track.
Definition: saved_grand_prix.hpp:80
Definition: user_config.hpp:84
int getNextTrack() const
Returns the index of the last track finished when this GP was saved.
Definition: saved_grand_prix.hpp:147
IntUserConfigParam m_difficulty
Difficulty at which this GP was run.
Definition: saved_grand_prix.hpp:74
int getTotalKarts() const
Returns the total number of karts of this GP.
Definition: saved_grand_prix.hpp:139
Definition: ptr_vector.hpp:43
int getSkippedTracks() const
Returns skipped tracks count.
Definition: saved_grand_prix.hpp:155
utility class used to parse XML files
Definition: xml_node.hpp:47
FloatUserConfigParam m_time_target
Time target used in Lap Trial mode.
Definition: saved_grand_prix.hpp:89
Definition: saved_grand_prix.hpp:41
std::string getGPID() const
Returns the grand prix id.
Definition: saved_grand_prix.hpp:127
MinorRaceModeType
Minor variants to the major types of race.
Definition: race_manager.hpp:108
Definition: user_config.hpp:255
int getDifficulty() const
Returns the difficulty of this GP.
Definition: saved_grand_prix.hpp:135
unsigned int getPlayerID() const
Returns the player id for this saved GP.
Definition: saved_grand_prix.hpp:123
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:38
float getTimeTarget() const
Returns time target used in Lap Trial mode.
Definition: saved_grand_prix.hpp:159
int getPlayerTotalLaps() const
Returns total laps in GP.
Definition: saved_grand_prix.hpp:163
IntUserConfigParam m_player_karts
Number of player karts used in this GP.
Definition: saved_grand_prix.hpp:77