racemanager.h 484 B

12345678910111213141516171819202122232425262728
  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. std::vector<QString> getAvailableRacesList();
  18. signals:
  19. public slots:
  20. };
  21. #endif // INCLUDEACEMANAGER_H