aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/script.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2015-12-24 18:11:47 +0100
committerEugene Sandulenko2015-12-27 15:41:01 +0100
commit9902ac2454561dc8abd37551539a8ad2cda2d538 (patch)
tree6c78817f8ebf9e4b931110015882e3ec1db48725 /engines/wage/script.cpp
parent370c1932f608085c94cb37be15487ccdfc0163da (diff)
downloadscummvm-rg350-9902ac2454561dc8abd37551539a8ad2cda2d538.tar.gz
scummvm-rg350-9902ac2454561dc8abd37551539a8ad2cda2d538.tar.bz2
scummvm-rg350-9902ac2454561dc8abd37551539a8ad2cda2d538.zip
WAGE: Implement handleLookCommand()
Diffstat (limited to 'engines/wage/script.cpp')
-rw-r--r--engines/wage/script.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp
index 547a850f45..3be3d599a0 100644
--- a/engines/wage/script.cpp
+++ b/engines/wage/script.cpp
@@ -832,9 +832,22 @@ void Script::handleMoveCommand(Scene::Directions dir, const char *dirName) {
}
void Script::handleLookCommand() {
- warning("STUB: handleLookCommand");
+ appendText(_world->_player->_currentScene->_text);
+
+ Common::String *items = getGroundItemsList(_world->_player->_currentScene);
+ if (items != NULL) {
+ appendText(*items);
+
+ delete items;
+ }
}
+Common::String *Script::getGroundItemsList(Scene *scene) {
+ warning("STUB: getGroundItemsList");
+ return NULL;
+}
+
+
void Script::handleInventoryCommand() {
warning("STUB: handleInventoryCommand");
}