diff options
author | Eugene Sandulenko | 2015-12-25 01:09:12 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-12-27 15:41:01 +0100 |
commit | d4afcf99f2b21319251fcb7e8a3de2854808e161 (patch) | |
tree | e24b53ecbb03a3b20d9d8092c1a609f99008866e /engines/wage/world.cpp | |
parent | 35cce4123c61f8cfbc80ced25a9c7a3f9b46b6e7 (diff) | |
download | scummvm-rg350-d4afcf99f2b21319251fcb7e8a3de2854808e161.tar.gz scummvm-rg350-d4afcf99f2b21319251fcb7e8a3de2854808e161.tar.bz2 scummvm-rg350-d4afcf99f2b21319251fcb7e8a3de2854808e161.zip |
WAGE: Initial code for world initialization
Diffstat (limited to 'engines/wage/world.cpp')
-rw-r--r-- | engines/wage/world.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp index b404736d00..8ae775ad12 100644 --- a/engines/wage/world.cpp +++ b/engines/wage/world.cpp @@ -57,7 +57,7 @@ namespace Wage { -World::World() { +World::World(WageEngine *engine) { _storageScene._name = STORAGESCENE; _orderedScenes.push_back(&_storageScene); _scenes[STORAGESCENE] = &_storageScene; @@ -66,6 +66,8 @@ World::World() { _saveBeforeQuitMessage = nullptr; _saveBeforeCloseMessage = nullptr; _revertMessage = nullptr; + + _engine = engine; } bool World::loadWorld(Common::MacResManager *resMan) { @@ -351,7 +353,20 @@ Common::String *World::loadStringFromDITL(Common::MacResManager *resMan, int res } void World::move(Obj *obj, Chr *chr) { - warning("STUB: World::move()"); + warning("STUB: World::move(obj, chr)"); +} + +void World::move(Obj *obj, Scene *scene) { + warning("STUB: World::move(obj, scene)"); +} + +void World::move(Chr *chr, Scene *scene) { + warning("STUB: World::move(chr, scene)"); +} + +Scene *World::getRandomScene() { + // Not including storage: + return _orderedScenes[1 + _engine->_rnd->getRandomNumber(_orderedScenes.size() - 1)]; } } // End of namespace Wage |