diff options
author | D G Turner | 2012-07-11 14:34:09 +0100 |
---|---|---|
committer | D G Turner | 2012-07-11 14:34:09 +0100 |
commit | cffff61081a48da730a9c3969c9b824852dcd71a (patch) | |
tree | 7422d3fbc210d72214e9b1847cabea89703efb26 /engines/teenagent/teenagent.cpp | |
parent | c05dfddec32e2eabc49c6bc0ca4bd2d3e90e3e2c (diff) | |
download | scummvm-rg350-cffff61081a48da730a9c3969c9b824852dcd71a.tar.gz scummvm-rg350-cffff61081a48da730a9c3969c9b824852dcd71a.tar.bz2 scummvm-rg350-cffff61081a48da730a9c3969c9b824852dcd71a.zip |
TEENAGENT: Replace static Dialog functions with normal class.
This avoids the need to pass the engine pointer, vm to every function
and removes the need for the functions to be static.
Diffstat (limited to 'engines/teenagent/teenagent.cpp')
-rw-r--r-- | engines/teenagent/teenagent.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp index 27ac071621..34719077b5 100644 --- a/engines/teenagent/teenagent.cpp +++ b/engines/teenagent/teenagent.cpp @@ -40,6 +40,7 @@ #include "graphics/thumbnail.h" #include "teenagent/console.h" +#include "teenagent/dialog.h" #include "teenagent/inventory.h" #include "teenagent/music.h" #include "teenagent/objects.h" @@ -65,6 +66,7 @@ TeenAgentEngine::TeenAgentEngine(OSystem *system, const ADGameDescription *gd) DebugMan.addDebugChannel(kDebugSurface, "Surface", "Enable Surface Debug"); music = new MusicPlayer(this); + dialog = new Dialog(this); res = new Resources(); console = 0; @@ -72,6 +74,7 @@ TeenAgentEngine::TeenAgentEngine(OSystem *system, const ADGameDescription *gd) TeenAgentEngine::~TeenAgentEngine() { delete music; + delete dialog; res->deinit(); delete res; |