aboutsummaryrefslogtreecommitdiff
path: root/engines/made/database.cpp
diff options
context:
space:
mode:
authorBenjamin Haisch2008-05-29 12:57:11 +0000
committerBenjamin Haisch2008-05-29 12:57:11 +0000
commitb9776d46b24476a5d4f30eb4fc993ce6a4cdb76f (patch)
tree547213cd83bfe6b81aeacf56069f527f4deb453b /engines/made/database.cpp
parent3f91c579fcdc4ed43a18792f6bd84d9e156efa13 (diff)
downloadscummvm-rg350-b9776d46b24476a5d4f30eb4fc993ce6a4cdb76f.tar.gz
scummvm-rg350-b9776d46b24476a5d4f30eb4fc993ce6a4cdb76f.tar.bz2
scummvm-rg350-b9776d46b24476a5d4f30eb4fc993ce6a4cdb76f.zip
- Implemented opcodes: sfHomeText, sfDrawAnimPic
- Comments on unneeded opcodes - Simplified getting/setting strings in Objects svn-id: r32361
Diffstat (limited to 'engines/made/database.cpp')
-rw-r--r--engines/made/database.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/made/database.cpp b/engines/made/database.cpp
index 4a331d5ca1..4616b63252 100644
--- a/engines/made/database.cpp
+++ b/engines/made/database.cpp
@@ -281,6 +281,20 @@ void GameDatabase::setVar(int16 index, int16 value) {
WRITE_LE_UINT16(_gameState + index * 2, value);
}
+const char *GameDatabase::getObjectString(int16 index) {
+ Object *obj = getObject(index);
+ if (obj)
+ return obj->getString();
+ else
+ return "";
+}
+
+void GameDatabase::setObjectString(int16 index, const char *str) {
+ Object *obj = getObject(index);
+ if (obj)
+ obj->setString(str);
+}
+
int16 GameDatabase::getObjectProperty(int16 objectIndex, int16 propertyId) {
if (objectIndex == 0)