diff options
author | johndoe123 | 2014-03-26 14:04:17 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 22e898f7eb1bddc363900f4146696bf6e9d41e2f (patch) | |
tree | d45b25cf42f6b3efeec2d14cba4a880fea06d182 /engines/illusions/scriptresource.h | |
parent | e05a7899755011f860f2b09ce6d5b4e0a15107b9 (diff) | |
download | scummvm-rg350-22e898f7eb1bddc363900f4146696bf6e9d41e2f.tar.gz scummvm-rg350-22e898f7eb1bddc363900f4146696bf6e9d41e2f.tar.bz2 scummvm-rg350-22e898f7eb1bddc363900f4146696bf6e9d41e2f.zip |
ILLUSIONS: Work on interaction; work on Cause related code
Diffstat (limited to 'engines/illusions/scriptresource.h')
-rw-r--r-- | engines/illusions/scriptresource.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/illusions/scriptresource.h b/engines/illusions/scriptresource.h index e2df45a34d..5e2da4574d 100644 --- a/engines/illusions/scriptresource.h +++ b/engines/illusions/scriptresource.h @@ -78,6 +78,7 @@ public: TriggerObject(); ~TriggerObject(); void load(byte *dataStart, Common::SeekableReadStream &stream); + bool findTriggerCause(uint32 verbId, uint32 objectId2, uint32 &codeOffs); public: uint32 _objectId; uint _causesCount; @@ -89,12 +90,14 @@ public: ProgInfo(); ~ProgInfo(); void load(byte *dataStart, Common::SeekableReadStream &stream); + bool findTriggerCause(uint32 verbId, uint32 objectId2, uint32 objectId, uint32 &codeOffs); protected: uint16 _id; uint16 _unk; byte *_name; uint _triggerObjectsCount; TriggerObject *_triggerObjects; + TriggerObject *findTriggerObject(uint32 objectId); }; class ScriptResource { @@ -103,6 +106,7 @@ public: ~ScriptResource(); void load(byte *data, uint32 dataSize); byte *getThreadCode(uint32 threadId); + byte *getCode(uint32 codeOffs); ProgInfo *getProgInfo(uint32 index); public: byte *_data; |