diff options
author | Paul Gilbert | 2014-02-18 23:43:06 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-02-18 23:43:06 -0500 |
commit | 530cbb4bc3406757ee3daeb3fc1972f79fd9199b (patch) | |
tree | 79b90fa862807e108b85e0ceac2cf7e14813b961 /engines/mads/mads.cpp | |
parent | 0e46c809d10dcd8fd766d7adcb966785e7955f5b (diff) | |
download | scummvm-rg350-530cbb4bc3406757ee3daeb3fc1972f79fd9199b.tar.gz scummvm-rg350-530cbb4bc3406757ee3daeb3fc1972f79fd9199b.tar.bz2 scummvm-rg350-530cbb4bc3406757ee3daeb3fc1972f79fd9199b.zip |
MADS: Adding in classes for fonts, game, user interfaec, and graphics
Diffstat (limited to 'engines/mads/mads.cpp')
-rw-r--r-- | engines/mads/mads.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/engines/mads/mads.cpp b/engines/mads/mads.cpp index 9998bc02e9..0ddb6bf401 100644 --- a/engines/mads/mads.cpp +++ b/engines/mads/mads.cpp @@ -26,6 +26,7 @@ #include "common/events.h" #include "engines/util.h" #include "mads/mads.h" +#include "mads/graphics.h" #include "mads/resources.h" #include "mads/sound.h" #include "mads/msurface.h" @@ -40,17 +41,24 @@ MADSEngine::MADSEngine(OSystem *syst, const MADSGameDescription *gameDesc) : _easyMouse = true; _invObjectStill = false; _textWindowStill = false; + + _events = nullptr; + _font = nullptr; _palette = nullptr; _resources = nullptr; _screen = nullptr; _sound = nullptr; + _userInterface = nullptr; } MADSEngine::~MADSEngine() { delete _events; + delete _font; + delete _palette; delete _resources; delete _screen; delete _sound; + delete _userInterface; } void MADSEngine::initialise() { @@ -63,13 +71,18 @@ void MADSEngine::initialise() { MSprite::setVm(this); _events = new EventsManager(this); + _palette = new Palette(this); + _font = Font::init(this); _resources = new ResourcesManager(this); - _screen = MSurface::init(); + _screen = MSurface::init(true); _sound = new SoundManager(this, _mixer); + _userInterface = UserInterface::init(this); + + _screen->empty(); } Common::Error MADSEngine::run() { - initGraphics(320, 200, false); + initGraphics(MADS_SCREEN_WIDTH, MADS_SCREEN_HEIGHT, false); initialise(); Common::Event e; |