racemanager.h 582 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef INCLUDEACEMANAGER_H
  2. #define INCLUDEACEMANAGER_H
  3. #include <QObject>
  4. #include <vector>
  5. class Race;
  6. class RaceManager : public QObject
  7. {
  8. Q_OBJECT
  9. private:
  10. explicit RaceManager(QObject *parent = nullptr);
  11. public:
  12. static RaceManager& getInstance() {
  13. static RaceManager instance;
  14. return instance;
  15. }
  16. Race* getRace(QString race_name);
  17. const std::vector<QString>& getAvailableRacesList();
  18. private:
  19. std::vector<QString> available_races_;
  20. std::map<QString, Race*> races_;
  21. signals:
  22. public slots:
  23. };
  24. #endif // INCLUDEACEMANAGER_H