diff options
author | Gregory Montoir | 2003-10-11 10:24:12 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-10-11 10:24:12 +0000 |
commit | a259809540ad494dc9d0126bc6125da63d5da043 (patch) | |
tree | bc00aa4a01a5227aa0fce1d396811cda50ed4c54 /queen | |
parent | cd1d7f474df973982b5653ba0bc6e76645822edb (diff) | |
download | scummvm-rg350-a259809540ad494dc9d0126bc6125da63d5da043.tar.gz scummvm-rg350-a259809540ad494dc9d0126bc6125da63d5da043.tar.bz2 scummvm-rg350-a259809540ad494dc9d0126bc6125da63d5da043.zip |
update QueenEngine class with new Logic constructor
svn-id: r10732
Diffstat (limited to 'queen')
-rw-r--r-- | queen/queen.cpp | 5 | ||||
-rw-r--r-- | queen/queen.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/queen/queen.cpp b/queen/queen.cpp index ccb9ef6f9a..19e980d2f2 100644 --- a/queen/queen.cpp +++ b/queen/queen.cpp @@ -25,6 +25,7 @@ #include "common/file.h" #include "base/gameDetector.h" #include "base/plugins.h" +#include "queen/graphics.h" extern uint16 _debugLevel; @@ -73,6 +74,7 @@ QueenEngine::QueenEngine(GameDetector *detector, OSystem *syst) } QueenEngine::~QueenEngine() { + delete _graphics; delete _logic; delete _resource; //delete _queenDisplay; @@ -96,7 +98,8 @@ void QueenEngine::go() { void QueenEngine::initialise(void) { _resource = new Resource(_gameDataPath); - _logic = new Logic(_resource); + _graphics = new Graphics(_resource); + _logic = new Logic(_resource, _graphics); //_sound = new Sound(_mixer, _detector->_sfx_volume); } diff --git a/queen/queen.h b/queen/queen.h index 2d2108f9a8..d300939671 100644 --- a/queen/queen.h +++ b/queen/queen.h @@ -32,6 +32,7 @@ namespace Queen { +class Graphics; class Logic; class QueenEngine : public Engine { @@ -49,6 +50,7 @@ protected: FILE *_dump_file; + Graphics *_graphics; Resource *_resource; Logic *_logic; |