#ifndef INCLUDEPLAYER_H #define INCLUDEPLAYER_H #include "units/unit.h" #include #include class Race; template class ObjectFactory; template class Player { private: Player() { } public: static Player& getInstance() { static Player instance; return instance; } void init() { player_name_ = "Игрок " + QString::number(id); race_ = nullptr; units_.clear(); } signals: public slots: private: QString player_name_; std::set units_; Race* race_; }; #endif // INCLUDEPLAYER_H