diff options
author | uruk | 2014-05-10 11:12:30 +0200 |
---|---|---|
committer | uruk | 2014-05-10 11:12:30 +0200 |
commit | 724899fc1939e26b1805deb9f9c9c7fc19c9a5ee (patch) | |
tree | 4a31803d6af543801481c025683b51c32b4399fd /engines/cge2/cge2.cpp | |
parent | c75c026df8897c3a7aa4721a4e8f204e92f08daf (diff) | |
download | scummvm-rg350-724899fc1939e26b1805deb9f9c9c7fc19c9a5ee.tar.gz scummvm-rg350-724899fc1939e26b1805deb9f9c9c7fc19c9a5ee.tar.bz2 scummvm-rg350-724899fc1939e26b1805deb9f9c9c7fc19c9a5ee.zip |
CGE2: Rework Sprite a bit, make _eye an engine variable.
Also move screenToGround() during the process.
Diffstat (limited to 'engines/cge2/cge2.cpp')
-rw-r--r-- | engines/cge2/cge2.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/cge2/cge2.cpp b/engines/cge2/cge2.cpp index c3ec6a92eb..986c616b65 100644 --- a/engines/cge2/cge2.cpp +++ b/engines/cge2/cge2.cpp @@ -33,6 +33,7 @@ #include "cge2/sound.h" #include "cge2/text.h" #include "cge2/hero.h" +#include "cge2/general.h" namespace CGE2 { @@ -47,6 +48,7 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription) _text = nullptr; for (int i = 0; i < 2; i++) _heroTab[i] = nullptr; + _eye = nullptr; _quitFlag = false; _bitmapPalette = nullptr; @@ -65,7 +67,8 @@ void CGE2Engine::init() { _midiPlayer = new MusicPlayer(this); _text = new Text(this, "CGE"); for (int i = 0; i < 2; i++) - _heroTab[i] = new HeroTab(); + _heroTab[i] = new HeroTab(this); + _eye = new V3D(); } void CGE2Engine::deinit() { @@ -78,6 +81,7 @@ void CGE2Engine::deinit() { delete _text; for (int i = 0; i < 2; i++) delete _heroTab[i]; + delete _eye; } bool CGE2Engine::hasFeature(EngineFeature f) const { |