diff options
author | uruk | 2014-05-08 16:51:03 +0200 |
---|---|---|
committer | uruk | 2014-05-08 16:51:03 +0200 |
commit | 72cccb80008979ed4f23404681df173d007f34ed (patch) | |
tree | 78b02a49cac2a5abaf0a19149e9095e7b9899d3f /engines/cge2/cge2.cpp | |
parent | fbb1a8da93a1d4efcf75df3379c3ecaa3235672b (diff) | |
download | scummvm-rg350-72cccb80008979ed4f23404681df173d007f34ed.tar.gz scummvm-rg350-72cccb80008979ed4f23404681df173d007f34ed.tar.bz2 scummvm-rg350-72cccb80008979ed4f23404681df173d007f34ed.zip |
CGE2: Add Hero.
Diffstat (limited to 'engines/cge2/cge2.cpp')
-rw-r--r-- | engines/cge2/cge2.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/cge2/cge2.cpp b/engines/cge2/cge2.cpp index 853f84f25d..cf521907a9 100644 --- a/engines/cge2/cge2.cpp +++ b/engines/cge2/cge2.cpp @@ -32,6 +32,7 @@ #include "cge2/vga13h.h" #include "cge2/sound.h" #include "cge2/text.h" +#include "cge2/hero.h" namespace CGE2 { @@ -44,6 +45,8 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription) _fx = nullptr; _sound = nullptr; _text = nullptr; + for (int i = 0; i < 2; i++) + _heroTab[i] = nullptr; _quitFlag = false; _bitmapPalette = nullptr; @@ -51,6 +54,7 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription) _music = true; _startupMode = 1; _now = 1; + _sex = true; } void CGE2Engine::init() { @@ -60,6 +64,8 @@ void CGE2Engine::init() { _sound = new Sound(this); _midiPlayer = new MusicPlayer(this); _text = new Text(this, "CGE"); + for (int i = 0; i < 2; i++) + _heroTab[i] = new HeroTab(); } void CGE2Engine::deinit() { @@ -70,6 +76,8 @@ void CGE2Engine::deinit() { delete _sound; delete _midiPlayer; delete _text; + for (int i = 0; i < 2; i++) + delete _heroTab[i]; } bool CGE2Engine::hasFeature(EngineFeature f) const { |