aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure/world.cpp
diff options
context:
space:
mode:
authorBorja Lorente2016-06-16 23:04:10 +0200
committerBorja Lorente2016-08-14 18:26:28 +0200
commitef5a1525149b8f9cfc6806fdb46217d912025195 (patch)
tree03e9f8dd56d08ae6aaefdf792e0965e2ab1aed6d /engines/macventure/world.cpp
parenta112cdcb9dd8349390a54b8c5cd2c0c8bc3ad66a (diff)
downloadscummvm-rg350-ef5a1525149b8f9cfc6806fdb46217d912025195.tar.gz
scummvm-rg350-ef5a1525149b8f9cfc6806fdb46217d912025195.tar.bz2
scummvm-rg350-ef5a1525149b8f9cfc6806fdb46217d912025195.zip
MACVENTURE: Add main loop
Diffstat (limited to 'engines/macventure/world.cpp')
-rw-r--r--engines/macventure/world.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/macventure/world.cpp b/engines/macventure/world.cpp
index 209b3c1096..d8fd9b4e39 100644
--- a/engines/macventure/world.cpp
+++ b/engines/macventure/world.cpp
@@ -17,11 +17,7 @@ World::World(MacVentureEngine *engine, Common::MacResManager *resMan) {
Common::SeekableReadStream *saveGameRes = saveGameFile.readStream(saveGameFile.size());
- _saveGame = new SaveGame(_engine, saveGameRes);
-
- debug("%x", _saveGame->getGroups()[0][1]);
- debug(11, "Parent of player is %d", getObjAttr(1, 0));
-
+ _saveGame = new SaveGame(_engine, saveGameRes);
_objectConstants = new Container(_engine->getFilePath(kObjectPathID).c_str());
delete saveGameRes;
@@ -39,7 +35,7 @@ World::~World() {
}
-uint32 World::getObjAttr(uint32 objID, uint32 attrID) {
+uint32 World::getObjAttr(ObjID objID, uint32 attrID) {
uint32 res;
uint32 index = _engine->getGlobalSettings().attrIndices[attrID];
if (!(index & 0x80)) { // It's not a constant
@@ -56,6 +52,10 @@ uint32 World::getObjAttr(uint32 objID, uint32 attrID) {
return res;
}
+bool MacVenture::World::isObjActive(ObjID obj) {
+ return false;
+}
+
bool World::loadStartGameFileName() {
Common::SeekableReadStream *res;