]> git.mxchange.org Git - quix0rs-blobwars.git/blob - src/CConfig.h
Use time_t to store time data.
[quix0rs-blobwars.git] / src / CConfig.h
1 class Config
2 {
3         public:
4         
5                 Engine *engine;
6
7                 int command[CONTROL::MAX];
8                 
9                 SDL_Joystick *sdlJoystick;
10                 
11                 Joystick joystick;
12                 Keyboard keyboard;
13
14         Config();
15         ~Config();
16         
17         void populate();
18         void populate(int *data);
19         
20         bool isControl(CONTROL::TYPE type) const;
21         void resetControl(CONTROL::TYPE type);
22         
23         void doPause();
24         
25         bool loadJoystickConfig();
26         bool saveJoystickConfig();
27         bool loadKeyConfig();
28         bool saveKeyConfig();
29         void restoreKeyDefaults();
30 };