22 #ifndef ILLUSIONS_SCRIPTRESOURCE_H 23 #define ILLUSIONS_SCRIPTRESOURCE_H 25 #include "illusions/resourcesystem.h" 26 #include "common/file.h" 30 class IllusionsEngine;
36 void load(
Resource *resource)
override;
37 bool isFlag(
int flag)
override;
45 void init(uint count, byte *properties);
47 bool get(uint32 propertyId);
48 void set(uint32 propertyId,
bool value);
55 void getProperyPos(uint32 propertyId, uint &index, byte &mask);
61 void init(uint count, byte *blockCounters);
64 void set(uint index, byte value);
65 byte getC0(uint index);
66 void setC0(uint index, byte value);
87 bool findTriggerCause(uint32 verbId, uint32 objectId2, uint32 &codeOffs);
88 void fixupSceneInfosDuckman();
100 bool findTriggerCause(uint32 verbId, uint32 objectId2, uint32 objectId, uint32 &codeOffs);
101 void getResources(uint &resourcesCount, uint32 *&resources);
102 void fixupSceneInfosDuckman();
107 uint _triggerObjectsCount;
109 uint _resourcesCount;
119 byte *getThreadCode(uint32 threadId);
120 byte *getCode(uint32 codeOffs);
122 uint32 getObjectActorTypeId(uint32 objectId);
123 uint32 getMainActorObjectId()
const {
return _mainActorObjectId; }
130 uint32 *_codeOffsets;
131 uint _sceneInfosCount;
134 uint32 _soundIds[27];
135 uint _objectMapCount;
137 uint32 _mainActorObjectId;
138 void fixupSceneInfosDuckman();
144 void load(
Resource *resource)
override;
145 void unload()
override;
152 #endif // ILLUSIONS_ACTORRESOURCE_H Definition: scriptresource.h:58
Definition: resourcesystem.h:51
Definition: scriptresource.h:95
Definition: scriptresource.h:141
Definition: scriptresource.h:75
Definition: resourcesystem.h:42
Definition: scriptresource.h:32
Definition: resourcesystem.h:78
Definition: scriptresource.h:114
Definition: scriptresource.h:42
Definition: scriptresource.h:82
Definition: illusions.h:92