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"
36 static const char* SUFFIX;
54 bool existsName(
const irr::core::stringw& name)
const;
55 void checkConsistency();
59 GrandPrixData* createNewGP(
const irr::core::stringw& newName);
61 const irr::core::stringw& newName);
62 void remove(
const std::string&
id);
Simple class that hold the data relevant to a 'grand_prix', aka.
Definition: grand_prix_data.hpp:36
GPGroupType
Used to classify GPs into groups.
Definition: grand_prix_data.hpp:46
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:70
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
const GrandPrixData * getGrandPrix(const std::string &s) const
Returns a pointer to the data for the specified GP.
Definition: grand_prix_manager.cpp:149
void loadFiles()
Load all the grands prix from the 3 directories known.
Definition: grand_prix_manager.cpp:46
unsigned int getNumberOfGrandPrix() const
Returns the number of GPs.
Definition: grand_prix_manager.hpp:73
std::string generateId()
Generates a new unique indentifier for a user defined grand prix.
Definition: grand_prix_manager.cpp:113
void loadDir(const std::string &dir, enum GrandPrixData::GPGroupType group)
Load all the grands prix in one directory.
Definition: grand_prix_manager.cpp:67
Definition: ptr_vector.hpp:44