diff options
Diffstat (limited to 'engines/macventure/macventure.cpp')
-rw-r--r-- | engines/macventure/macventure.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/engines/macventure/macventure.cpp b/engines/macventure/macventure.cpp index 78884cf1bf..f2a2f43f51 100644 --- a/engines/macventure/macventure.cpp +++ b/engines/macventure/macventure.cpp @@ -92,7 +92,7 @@ Common::Error MacVentureEngine::run() { // Big class instantiation _gui = new Gui(this, _resourceManager); _world = new World(this, _resourceManager); - _scriptEngine = new ScriptEngine(_world); + _scriptEngine = new ScriptEngine(this, _world); _paused = false; _halted = true; @@ -193,6 +193,14 @@ void MacVentureEngine::gameChanged() { _gameChanged = true; } +void MacVentureEngine::winGame() { + _gameState = kGameStateWinnig; +} + +void MacVentureEngine::loseGame() { + _gameState = kGameStateLosing; +} + void MacVentureEngine::enqueueObject(ObjID id) { QueuedObject obj; obj.parent = _world->getObjAttr(id, kAttrParentObject); @@ -206,6 +214,13 @@ void MacVentureEngine::enqueueObject(ObjID id) { _objQueue.push_back(obj); } +void MacVentureEngine::enqueueText(TextQueueID type, ObjID target, ObjID source, ObjID text) { +} + +void MacVentureEngine::printTexts() { + debug("Printing texts.."); +} + const GlobalSettings& MacVentureEngine::getGlobalSettings() const { return _globalSettings; } @@ -284,6 +299,9 @@ bool MacVentureEngine::updateState() { return true; } +void MacVentureEngine::revert() { +} + void MacVentureEngine::runObjQueue() { } @@ -360,6 +378,10 @@ const HuffmanLists * MacVentureEngine::getDecodingHuffman() const { return _textHuffman; } +uint32 MacVentureEngine::randBetween(uint32 min, uint32 max) { + return _rnd->getRandomNumber(max - min) + min; +} + // Data loading bool MacVentureEngine::loadGlobalSettings() { |