19 #ifndef HEADER_GRAND_PRIX_MANAGER_HPP 20 #define HEADER_GRAND_PRIX_MANAGER_HPP 22 #include "race/grand_prix_data.hpp" 26 #include "utils/ptr_vector.hpp" 37 static const char* SUFFIX;
55 bool existsName(
const irr::core::stringw& name)
const;
56 void checkConsistency();
60 GrandPrixData* createNewGP(
const irr::core::stringw& newName);
62 const irr::core::stringw& newName);
63 void remove(
const std::string& id);
void loadDir(const std::string &dir, enum GrandPrixData::GPGroupType group)
Load all the grands prix in one directory.
Definition: grand_prix_manager.cpp:67
void loadFiles()
Load all the grands prix from the 3 directories known.
Definition: grand_prix_manager.cpp:46
const GrandPrixData * getGrandPrix(const std::string &s) const
Returns a pointer to the data for the specified GP.
Definition: grand_prix_manager.cpp:149
unsigned int getNumberOfGrandPrix() const
Returns the number of GPs.
Definition: grand_prix_manager.hpp:74
std::string generateId()
Generates a new unique indentifier for a user defined grand prix.
Definition: grand_prix_manager.cpp:113
void load(const std::string &filename, enum GrandPrixData::GPGroupType group)
Load a grand prix and add it to m_gp_data.
Definition: grand_prix_manager.cpp:84
Definition: grand_prix_manager.hpp:34
const GrandPrixData * getGrandPrix(const int i) const
Returns a pointer to the data for the specified GP.
Definition: grand_prix_manager.hpp:71
GPGroupType
Used to classify GPs into groups.
Definition: grand_prix_data.hpp:45
Simple class that hold the data relevant to a 'grand_prix', aka.
Definition: grand_prix_data.hpp:35