MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / GameManager

Class GameManager

Source/GameManager.h:24–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "GameToolbox/enums.h"
23
24class GameManager
25{
26public:
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
45private:
46 bool init();
47 void load();
48
49public:
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};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected