aboutsummaryrefslogtreecommitdiff
path: root/sword2/controls.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-11-08 15:47:51 +0000
committerTorbjörn Andersson2003-11-08 15:47:51 +0000
commit688c80b0620ae5765355a4048864bb3de84ebf74 (patch)
tree497d8efc73b08f5a4d58c45c52b7a6bafa1975ff /sword2/controls.h
parentb04ddef7506bfa08527da9e79040c583fb765b2e (diff)
downloadscummvm-rg350-688c80b0620ae5765355a4048864bb3de84ebf74.tar.gz
scummvm-rg350-688c80b0620ae5765355a4048864bb3de84ebf74.tar.bz2
scummvm-rg350-688c80b0620ae5765355a4048864bb3de84ebf74.zip
Moved more stuff into classes, changed some static allocation to dynamic,
and removed some of the references to global variables. At this point I believe everything in the main game engine has been moved into classes - not necessarily the correct ones, but still... However, there is some stuff in the driver directory that need to be taken care of as well. svn-id: r11207
Diffstat (limited to 'sword2/controls.h')
-rw-r--r--sword2/controls.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sword2/controls.h b/sword2/controls.h
index d85adbf66b..169667cbbb 100644
--- a/sword2/controls.h
+++ b/sword2/controls.h
@@ -22,8 +22,12 @@
namespace Sword2 {
+class Sword2Engine;
+
class Gui {
private:
+ Sword2Engine *_vm;
+
int _musicVolume[17];
int _soundVolume[15];
@@ -35,7 +39,7 @@ public:
bool _stereoReversed;
bool _pointerTextSelected;
- Gui();
+ Gui(Sword2Engine *vm);
uint32 restoreControl(void);
void saveControl(void);