aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure/world.h
diff options
context:
space:
mode:
authorBorja Lorente2016-06-18 23:14:17 +0200
committerBorja Lorente2016-08-14 18:29:11 +0200
commit96f9910c79849c980a09ff733f4710ba9d414dc9 (patch)
tree61d9aea54d5ea51933bd6a4f60c2cd27d6736dd7 /engines/macventure/world.h
parent9b052d0a973971a50b4f0df918489e0fc6dd9fdb (diff)
downloadscummvm-rg350-96f9910c79849c980a09ff733f4710ba9d414dc9.tar.gz
scummvm-rg350-96f9910c79849c980a09ff733f4710ba9d414dc9.tar.bz2
scummvm-rg350-96f9910c79849c980a09ff733f4710ba9d414dc9.zip
MACVENTURE: Add opcodes for script engine
Diffstat (limited to 'engines/macventure/world.h')
-rw-r--r--engines/macventure/world.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/engines/macventure/world.h b/engines/macventure/world.h
index 3893aca445..370582665b 100644
--- a/engines/macventure/world.h
+++ b/engines/macventure/world.h
@@ -67,9 +67,11 @@ public:
Attribute getAttr(ObjID objID, uint32 attrID);
void setAttr(uint32 attrID, ObjID objID, Attribute value);
+ void setGlobal(uint32 attrID, Attribute value);
+ const Common::Array<uint16> &getGlobals();
+
const Common::Array<AttributeGroup> &getGroups();
const AttributeGroup *getGroup(uint32 groupID);
- const Common::Array<uint16> &getGlobals();
const Common::String &getText();
private:
@@ -88,11 +90,22 @@ public:
World(MacVentureEngine *engine, Common::MacResManager *resMan);
~World();
- uint32 getObjAttr(ObjID objID, uint32 attrID);
+
void setObjAttr(ObjID objID, uint32 attrID, Attribute value);
+ void setGlobal(uint32 attrID, Attribute value);
+ void updateObj(ObjID objID);
+ void captureChildren(ObjID objID);
+ void releaseChildren(ObjID objID);
+
+ uint32 getObjAttr(ObjID objID, uint32 attrID);
+ Attribute getGlobal(uint32 attrID);
+ Common::String getText(ObjID objID);
+
bool isObjActive(ObjID obj);
Common::Array<ObjID> getFamily(ObjID objID, bool recursive);
Common::Array<ObjID> getChildren(ObjID objID, bool recursive);
+ WindowReference getObjWindow(ObjID objID);
+ WindowReference findObjWindow(ObjID objID);
private:
bool loadStartGameFileName();