| 22 | #include "GameToolbox/enums.h" |
| 23 | |
| 24 | class GameManager |
| 25 | { |
| 26 | public: |
| 27 | bool _mediumQuality; |
| 28 | bool _openedGarage; |
| 29 | bool _openedCreator; |
| 30 | bool _openedPracticeMode; |
| 31 | |
| 32 | int _selectedCube; |
| 33 | int _selectedShip; |
| 34 | int _selectedBall; |
| 35 | int _selectedUfo; |
| 36 | int _selectedWave; |
| 37 | int _selectedRobot; |
| 38 | int _selectedSpider; |
| 39 | int _selectedSpecial; |
| 40 | int _selectedDeathEffect; |
| 41 | int _accountID; |
| 42 | IconType _mainSelectedMode; |
| 43 | std::string _filepath; |
| 44 | |
| 45 | private: |
| 46 | bool init(); |
| 47 | void load(); |
| 48 | |
| 49 | public: |
| 50 | static GameManager* getInstance(); |
| 51 | |
| 52 | template<typename T> |
| 53 | T get(const std::string& key); |
| 54 | |
| 55 | template<typename T> |
| 56 | void set(const std::string& key, const T& val); |
| 57 | |
| 58 | void save(); |
| 59 | void setMembersToMap(); |
| 60 | void loadMembersFromMap(); |
| 61 | bool isMedium(); |
| 62 | bool isHigh(); |
| 63 | void setQuality(bool medium); |
| 64 | void setQualityMedium(); |
| 65 | void setQualityHigh(); |
| 66 | void print(); |
| 67 | int getSelectedIcon(IconType); |
| 68 | void setSelectedIcon(IconType, int); |
| 69 | bool isFollowingUser(int accountID); |
| 70 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected