aboutsummaryrefslogtreecommitdiff
path: root/queen/command.h
diff options
context:
space:
mode:
authorGregory Montoir2003-12-11 22:16:35 +0000
committerGregory Montoir2003-12-11 22:16:35 +0000
commitc2be8ed45dccc04528869bece0ef3f9ff6c9d743 (patch)
tree4591859bb6f6cb2e75b3a7dac4565047c81305af /queen/command.h
parent38c4321f5965c5872e2d4e73d0a9e6ec05a35a2e (diff)
downloadscummvm-rg350-c2be8ed45dccc04528869bece0ef3f9ff6c9d743.tar.gz
scummvm-rg350-c2be8ed45dccc04528869bece0ef3f9ff6c9d743.tar.bz2
scummvm-rg350-c2be8ed45dccc04528869bece0ef3f9ff6c9d743.zip
constructors cleanup
svn-id: r11589
Diffstat (limited to 'queen/command.h')
-rw-r--r--queen/command.h19
1 files changed, 4 insertions, 15 deletions
diff --git a/queen/command.h b/queen/command.h
index bc4e256445..3c04451840 100644
--- a/queen/command.h
+++ b/queen/command.h
@@ -28,11 +28,7 @@
namespace Queen {
-class Logic;
-class Graphics;
-class Input;
-class Walk;
-class Sound;
+class QueenEngine;
struct CmdText {
@@ -51,8 +47,7 @@ struct CmdText {
};
char _command[MAX_COMMAND_LEN];
- Graphics *_graphics;
- Logic *_logic;
+ QueenEngine *_vm;
};
@@ -81,11 +76,10 @@ struct SelectedCmdState {
int16 noun;
};
-
class Command {
public:
- Command(Logic *, Graphics *, Input *, Walk *, Sound *);
+ Command(QueenEngine *vm);
//! initialise command construction
void clear(bool clearTexts);
@@ -186,12 +180,7 @@ private:
//! last user selection
int _mouseKey, _selPosX, _selPosY;
- Logic *_logic;
- Graphics *_graphics;
- Input *_input;
- Sound *_sound;
- Walk *_walk;
-
+ QueenEngine *_vm;
};
} // End of namespace Queen