22 #ifndef STARK_RESOURCES_COMMAND_H 23 #define STARK_RESOURCES_COMMAND_H 25 #include "common/array.h" 26 #include "common/str.h" 28 #include "math/vector3d.h" 30 #include "engines/stark/resources/object.h" 31 #include "engines/stark/resourcereference.h" 35 class ResourceReference;
53 static const Type::ResourceType TYPE = Type::kCommand;
63 kSetInteractiveMode = 4,
69 kScriptPauseRandom = 10,
70 kScriptPauseSkippable = 11,
81 kLocationGoToNewCD = 22,
85 kBookOfSecretsOpen = 26,
90 kItem3DFollowPath = 83,
93 kItem2DFollowPath = 86,
95 kItemSetActivity = 88,
96 kItemSelectInInventory = 89,
98 kUseAnimHierarchy = 92,
102 kKnowledgeSetBoolean = 96,
104 kKnowledgeSetInteger = 100,
105 kKnowledgeAddInteger = 101,
107 kEnableFloorField = 103,
108 kPlayAnimScriptItem = 104,
109 kItemAnimFollowPath = 105,
111 kKnowledgeAssignBool = 107,
113 kKnowledgeAssignInteger = 110,
114 kLocationScrollTo = 111,
117 kKnowledgeSetIntRandom = 115,
119 kKnowledgeSubValue = 117,
120 kItemLookDirection = 118,
122 kStopPlayingSound = 119,
125 kLocationScrollSet = 122,
126 kFullMotionVideoPlay = 123,
129 kKnowledgeAssignNegatedBool = 126,
130 kDiaryEnableEntry = 127,
131 kPATChangeTooltip = 128,
133 kLightSetColor = 130,
134 kLightFollowPath = 131,
136 kItemPlaceDirection = 133,
137 kItemRotateDirection = 134,
138 kActivateTexture = 135,
140 kItem3DSetWalkTarget = 137,
142 kSpeakWithoutTalking = 139,
144 kIsOnFloorField = 162,
145 kIsItemEnabled = 163,
147 kIsScriptEnabled = 165,
148 kIsKnowledgeBooleanSet = 166,
150 kIsKnowledgeIntegerInRange = 170,
151 kIsKnowledgeIntegerAbove = 171,
152 kIsKnowledgeIntegerEqual = 172,
153 kIsKnowledgeIntegerLower = 173,
154 kIsScriptActive = 174,
156 kIsAnimScriptItemReached = 176,
157 kIsItemOnPlace = 177,
159 kIsAnimPlaying = 179,
160 kIsItemActivity = 180,
162 kIsItemNearPlace = 183,
166 kIsInventoryOpen = 187
173 kTypeResourceReference = 3,
190 Command *nextCommandIf(
bool predicate);
196 void resumeItemSetActivity();
203 Math::Vector3d getObjectPosition(
const ResourceReference &targetRef, int32 *floorFace =
nullptr);
208 Command *opSetInteractiveMode(
bool enabled);
218 Command *opRumbleScene(
Script *script, int32 rumbleDuration, int32 pause);
219 Command *opFadeScene(
Script *script,
bool fadeOut, int32 fadeDuration,
bool pause);
220 Command *opSwayScene(int32 periodMs, int32 angleIn, int32 amplitudeIn, int32 offsetIn);
222 Command *opInventoryOpen(
bool open);
223 Command *opFloatScene(int32 periodMs, int32 amplitudeIn, int32 offsetIn);
224 Command *opBookOfSecretsOpen();
278 Command *opIsRandom(int32 chance);
294 #endif // STARK_RESOURCES_COMMAND_H
Definition: command.h:169
Definition: resourcereference.h:39