MOHAWK: Split channelwood opcodes into their own class

svn-id: r54691
This commit is contained in:
Matthew Hoops 2010-12-01 02:11:11 +00:00
parent 94801fcea3
commit 261cf23901
6 changed files with 640 additions and 368 deletions

View file

@ -39,6 +39,7 @@
#include "mohawk/video.h"
// The stacks
#include "mohawk/myst_stacks/channelwood.h"
#include "mohawk/myst_stacks/credits.h"
#include "mohawk/myst_stacks/myst.h"
#include "mohawk/myst_stacks/selenitic.h"
@ -377,6 +378,9 @@ void MohawkEngine_Myst::changeToStack(uint16 stack) {
_prevStack = _scriptParser;
switch (_curStack) {
case kChannelwoodStack:
_scriptParser = new MystScriptParser_Channelwood(this);
break;
case kCreditsStack:
_scriptParser = new MystScriptParser_Credits(this);
break;