#ifndef INCLUDEPLAYERMANAGER_H #define INCLUDEPLAYERMANAGER_H #include #include #include class PlayerManager : public QObject { Q_OBJECT private: explicit PlayerManager(QObject *parent = nullptr); public: static PlayerManager& getInstance() { static PlayerManager instance; return instance; } Player* getPlayer(int id); int getPlayersNum(); void setPlayersNum(int num); private: std::vector players_; signals: public slots: }; #endif // INCLUDEPLAYERMANAGER_H