diff options
author | Eugene Sandulenko | 2016-01-04 00:42:10 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-01-04 00:42:10 +0100 |
commit | cc14b5f96fc6457e240d8c7c9a9c16422dc3586d (patch) | |
tree | 08d4e70cf0beae746a621dee01f84fc7033a877a /engines/wage/world.cpp | |
parent | 2c8922ed3094e20afa53861e95a0b5d97460feee (diff) | |
download | scummvm-rg350-cc14b5f96fc6457e240d8c7c9a9c16422dc3586d.tar.gz scummvm-rg350-cc14b5f96fc6457e240d8c7c9a9c16422dc3586d.tar.bz2 scummvm-rg350-cc14b5f96fc6457e240d8c7c9a9c16422dc3586d.zip |
WAGE: Implement handleMoveCommand()
Diffstat (limited to 'engines/wage/world.cpp')
-rw-r--r-- | engines/wage/world.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp index e7c37c17d5..f0d7c974a8 100644 --- a/engines/wage/world.cpp +++ b/engines/wage/world.cpp @@ -434,4 +434,15 @@ Scene *World::getRandomScene() { return _orderedScenes[1 + _engine->_rnd->getRandomNumber(_orderedScenes.size() - 1)]; } +Scene *World::getSceneAt(int x, int y) { + for (int i = 0; i < _orderedScenes.size(); i++) { + Scene *scene = _orderedScenes[i]; + + if (scene != _storageScene && scene->_worldX == x && scene->_worldY == y) { + return scene; + } + } + return NULL; +} + } // End of namespace Wage |