diff options
author | Johannes Schickel | 2008-05-03 19:23:45 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-05-03 19:23:45 +0000 |
commit | d5545bd8c5589e8d919350b932eaed76b28e83e9 (patch) | |
tree | 8418c5c56c25d97202fb544660bf6cbf88123610 /engines/kyra/kyra_mr.cpp | |
parent | 043f92cb230f6afc83e5635cc1610c5d166e105f (diff) | |
download | scummvm-rg350-d5545bd8c5589e8d919350b932eaed76b28e83e9.tar.gz scummvm-rg350-d5545bd8c5589e8d919350b932eaed76b28e83e9.tar.bz2 scummvm-rg350-d5545bd8c5589e8d919350b932eaed76b28e83e9.zip |
- Moved newShape/temporaryScript code to KyraEngine_v2.
- Renamed newShape/temporaryScript code to animationScript.
svn-id: r31841
Diffstat (limited to 'engines/kyra/kyra_mr.cpp')
-rw-r--r-- | engines/kyra/kyra_mr.cpp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/engines/kyra/kyra_mr.cpp b/engines/kyra/kyra_mr.cpp index 3fe27fe86d..442601575a 100644 --- a/engines/kyra/kyra_mr.cpp +++ b/engines/kyra/kyra_mr.cpp @@ -40,7 +40,20 @@ #include "common/config-manager.h" namespace Kyra { -KyraEngine_MR::KyraEngine_MR(OSystem *system, const GameFlags &flags) : KyraEngine_v2(system, flags) { + +namespace { +const KyraEngine_v2::EngineDesc mrEngineDesc = { + 248, + + 9, + + 9 +}; +} // end of anonymous namespace + +KyraEngine_MR::KyraEngine_MR(OSystem *system, const GameFlags &flags) : KyraEngine_v2(system, flags, mrEngineDesc) { + KyraEngine_v2::_characterFrameTable = _characterFrameTable; + _soundDigital = 0; _musicSoundChannel = -1; _menuAudioFile = "TITLE1.AUD"; @@ -90,8 +103,6 @@ KyraEngine_MR::KyraEngine_MR(OSystem *system, const GameFlags &flags) : KyraEngi _noStartupChat = false; _pathfinderFlag = 0; _talkObjectList = 0; - _chatText = 0; - _chatObject = -1; memset(&_chatScriptState, 0, sizeof(_chatScriptState)); memset(&_chatScriptData, 0, sizeof(_chatScriptData)); _voiceSoundChannel = -1; @@ -101,7 +112,6 @@ KyraEngine_MR::KyraEngine_MR(OSystem *system, const GameFlags &flags) : KyraEngi _curStudioSFX = 283; _badConscienceShown = false; _currentChapter = 1; - _deathHandler = -1; _unkHandleSceneChangeFlag = false; memset(_sceneShapeDescs, 0, sizeof(_sceneShapeDescs)); _cnvFile = _dlgBuffer = 0; @@ -115,8 +125,6 @@ KyraEngine_MR::KyraEngine_MR(OSystem *system, const GameFlags &flags) : KyraEngi _malcolmsMood = 1; _nextIdleAnim = 0; _nextIdleType = false; - _newShapeFlag = -1; - _newShapeFiledata = 0; _inventoryScrollSpeed = -1; _invWsa = 0; _invWsaFrame = -1; @@ -130,7 +138,6 @@ KyraEngine_MR::KyraEngine_MR(OSystem *system, const GameFlags &flags) : KyraEngi _goodConscienceShown = false; _goodConscienceAnim = -1; _goodConsciencePosition = false; - _showOutro = false; } KyraEngine_MR::~KyraEngine_MR() { @@ -167,10 +174,6 @@ KyraEngine_MR::~KyraEngine_MR() { delete [] _sceneStrings; delete [] _talkObjectList; - for (Common::Array<const Opcode*>::iterator i = _opcodesTemporary.begin(); i != _opcodesTemporary.end(); ++i) - delete *i; - _opcodesTemporary.clear(); - for (Common::Array<const Opcode*>::iterator i = _opcodesDialog.begin(); i != _opcodesDialog.end(); ++i) delete *i; _opcodesDialog.clear(); @@ -178,7 +181,6 @@ KyraEngine_MR::~KyraEngine_MR() { delete _cnvFile; delete _dlgBuffer; delete [] _stringBuffer; - delete [] _newShapeFiledata; delete _invWsa; delete _debugger; delete [] _mainButtonData; |