diff options
Diffstat (limited to 'engines/parallaction/parallaction_br.cpp')
-rw-r--r-- | engines/parallaction/parallaction_br.cpp | 43 |
1 files changed, 40 insertions, 3 deletions
diff --git a/engines/parallaction/parallaction_br.cpp b/engines/parallaction/parallaction_br.cpp index 78fe775072..84bed3eec2 100644 --- a/engines/parallaction/parallaction_br.cpp +++ b/engines/parallaction/parallaction_br.cpp @@ -66,6 +66,8 @@ int Parallaction_br::init() { initFonts(); initCursors(); + _part = -1; + Parallaction::init(); return 0; @@ -97,10 +99,34 @@ int Parallaction_br::go() { // TODO: load progress value from special save game _progress = 3; - // TODO: game loop :P + while ((_engineFlags & kEngineQuit) == 0) { + +// initCharacter(); + + int option = showMenu(); + switch (option) { + case kMenuQuit: + _engineFlags |= kEngineQuit; + break; + + case kMenuLoadGame: + warning("loadgame not yet implemented"); + break; + + default: + _part = option; + initPart(); + break; + } + + + runGame(); - int option = showMenu(); - printf("option = %i\n", option); + freePart(); +// freeLocation(); +// freeCharacter(); + + } return 0; } @@ -274,4 +300,15 @@ void Parallaction_br::setMousePointer(int16 index) { } +void Parallaction_br::initPart() { + + +} + +void Parallaction_br::freePart() { + + +} + + } // namespace Parallaction |