22 #ifndef NANCY_COMMONYPES_H 23 #define NANCY_COMMONYPES_H 25 #include "common/rect.h" 26 #include "common/array.h" 27 #include "common/language.h" 28 #include "common/str.h" 29 #include "math/vector3d.h" 32 class SeekableReadStream;
47 static const int8 kFlagNoLabel = -1;
48 static const int8 kEvNoEvent = -1;
49 static const int8 kFrNoFrame = -1;
50 static const uint16 kNoScene = 9999;
53 static const byte kInvItemUseThenLose = 0;
54 static const byte kInvItemKeepAlways = 1;
55 static const byte kInvItemReturn = 2;
56 static const byte kInvItemNewSceneView = 3;
59 static const byte kInvSoundOverrideCommandNoSound = 0;
60 static const byte kInvSoundOverrideCommandTurnOff = 1;
61 static const byte kInvSoundOverrideCommandNewSound = 2;
62 static const byte kInvSoundOverrideCommandICant = 3;
65 static const byte kFlagEvent = 1;
66 static const byte kFlagInventory = 2;
67 static const byte kFlagCursor = 3;
70 static const byte kPanNone = 0;
71 static const byte kPan360 = 1;
72 static const byte kPanLeftRight = 2;
75 static const byte kContinueSceneSound = 1;
76 static const byte kLoadSceneSound = 0;
79 static const uint16 kInvertedNode = 77;
80 static const uint16 kNoAutoScroll = 333;
83 static const byte kAbsoluteClockBump = 1;
84 static const byte kRelativeClockBump = 2;
87 static const byte kPlayerDay = 0;
88 static const byte kPlayerNight = 1;
89 static const byte kPlayerDuskDawn = 2;
92 static const byte kSmallVideoFormat = 1;
93 static const byte kLargeVideoFormat = 2;
95 static const byte kVideoPlaytypeAVF = 0;
96 static const byte kVideoPlaytypeBink = 1;
99 static const byte kPlayOverlayPlain = 1;
100 static const byte kPlayOverlayTransparent = 2;
102 static const byte kPlayOverlaySceneChange = 1;
103 static const byte kPlayOverlayNoSceneChange = 2;
105 static const byte kPlayOverlayStatic = 1;
106 static const byte kPlayOverlayAnimated = 2;
108 static const byte kPlayOverlayOnce = 1;
109 static const byte kPlayOverlayLoop = 2;
111 static const byte kPlayOverlayForward = 1;
112 static const byte kPlayOverlayReverse = 2;
114 static const byte kPlayOverlayWithHotspot = 1;
115 static const byte kPlayOverlayNoHotspot = 2;
118 static const byte kNoChangeTableValue = 0;
119 static const byte kIncrementTableValue = 1;
120 static const byte kDecrementTableValue = 2;
121 static const uint16 kNoTableIndex = 99;
122 static const int16 kNoTableValue = 9999;
125 static const uint16 kListLIFO = 0;
126 static const uint16 kListFIFO = 1;
129 static const byte kRotateAroundX = 0;
130 static const byte kRotateAroundY = 1;
131 static const byte kRotateAroundZ = 2;
133 enum MovementDirection : byte { kUp = 1, kDown = 2, kLeft = 4, kRight = 8, kMoveFast = 16 };
136 namespace NancyState {
139 kBoot, kLogo, kCredits, kMap,
140 kMainMenu, kLoadSave, kSetup,
141 kHelp, kScene, kSaveDialog,
152 uint16 sceneID = kNoScene;
154 uint16 verticalOffset = 0;
155 uint16 continueSceneSound = kLoadSceneSound;
159 Math::Vector3d listenerFrontVector = Math::Vector3d(0, 0, 1);
160 uint16 frontVectorFrameID = 0;
190 uint16 staticRectID = 0;
191 uint hasHotspot = kPlayOverlayNoHotspot;
207 int16 frameID = kFrNoFrame;
218 uint32 minTimeDelay = 500;
219 uint32 maxTimeDelay = 2000;
221 int32 randomMoveMinX = 0;
222 int32 randomMoveMaxX = 0;
223 int32 randomMoveMinY = 0;
224 int32 randomMoveMaxY = 0;
225 int32 randomMoveMinZ = 0;
226 int32 randomMoveMaxZ = 0;
232 uint32 moveStepTime = 1000;
233 int32 numMoveSteps = 10;
235 int32 linearMoveStartX = 0;
236 int32 linearMoveEndX = 0;
237 int32 linearMoveStartY = 0;
238 int32 linearMoveEndY = 0;
239 int32 linearMoveStartZ = 0;
240 int32 linearMoveEndZ = 0;
242 int32 rotateMoveStartX = 0;
243 int32 rotateMoveStartY = 0;
244 int32 rotateMoveStartZ = 0;
245 byte rotateMoveAxis = kRotateAroundY;
247 uint32 minDistance = 0;
248 uint32 maxDistance = 0;
256 uint16 channelID = 0;
257 uint16 playCommands = 1;
260 uint16 panAnchorFrame = 0;
261 uint32 samplesPerSec = 0;
262 bool isPanning =
false;
274 enum class StaticDataConditionType { kEvent = 0, kInventory = 1, kDifficulty = 2 };
313 byte numSceneSpecificChannels;
323 uint16 numItems = 11;
324 uint16 numEventFlags = 168;
327 uint16 numCursorTypes = 4;
328 uint32 logoEndAfter = 7000;
329 int16 wonGameFlagID = -1;
353 #endif // NANCY_COMMONYPES_H Definition: commontypes.h:199
Definition: commontypes.h:321
Definition: commontypes.h:151
Definition: commontypes.h:275
Definition: commontypes.h:301
Definition: commontypes.h:277
Definition: commontypes.h:217
Definition: commontypes.h:188
Definition: commontypes.h:294
Definition: commontypes.h:171
Definition: commontypes.h:311
Definition: algorithm.h:29
Definition: commontypes.h:254
Definition: commontypes.h:166
Definition: commontypes.h:206
Definition: commontypes.h:180
Definition: commontypes.h:286
Definition: actionmanager.h:32
Language
Definition: language.h:45