-
Notifications
You must be signed in to change notification settings - Fork 0
/
Settings.h
70 lines (60 loc) · 1.43 KB
/
Settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#pragma once
class Settings
{
public:
Settings();
virtual ~Settings();
bool Load();
void Save();
// Video Options (GET)
int GetWindowWidth();
void SetWindowWidth(int width);
int GetWindowHeight();
void SetWindowHeight(int height);
bool GetFullscreen();
void SetFullscreen(bool fullscreen);
bool GetVSync();
void SetVSync(bool vsync);
bool GetFastGpu();
void SetFastGpu(bool fastgpu);
// Sound Options (GET)
int GetMasterVolume();
void SetMasterVolume(int volume);
int GetVoiceVolume();
void SetVoiceVolume(int volume);
int GetSoundEffectVolume();
void SetSoundEffectVolume(int volume);
int GetMusicVolume();
void SetMusicVolume(int volume);
// Game Options (GET)
bool GetShowFps();
void SetShowFps(bool showfps);
// Controls (GET)
int GetMoveLeft();
void SetMoveLeft(int keyLeft);
int GetMoveUp();
void SetMoveUp(int keyUp);
int GetMoveRight();
void SetMoveRight(int keyRight);
int GetMoveDown();
void SetMoveDown(int keyDown);
private:
// Video Options
int windowWidth; // 1024
int windowHeight; // 768
bool fullscreen; // false
bool vsync; // 0:VSync off, 1:VSync on (default)
bool fastGPU; // false
// Sound Options
int masterVolume; // 100
int voiceVolume; // 100
int soundEffectsVolume; // 100
int musicVolume; // 100
// Game Options
bool showFPS; // false
// Controls
int moveLeft;
int moveUp;
int moveRight;
int moveDown;
};