22 #ifndef NANCY_COMMONYPES_H 23 #define NANCY_COMMONYPES_H 25 #include "common/rect.h" 26 #include "common/array.h" 27 #include "common/str.h" 28 #include "math/vector3d.h" 31 class SeekableReadStream;
46 static const int8 kFlagNoLabel = -1;
47 static const int8 kEvNoEvent = -1;
48 static const int8 kFrNoFrame = -1;
49 static const uint16 kNoScene = 9999;
52 static const byte kInvItemUseThenLose = 0;
53 static const byte kInvItemKeepAlways = 1;
54 static const byte kInvItemReturn = 2;
55 static const byte kInvItemNewSceneView = 3;
58 static const byte kInvSoundOverrideCommandNoSound = 0;
59 static const byte kInvSoundOverrideCommandTurnOff = 1;
60 static const byte kInvSoundOverrideCommandNewSound = 2;
61 static const byte kInvSoundOverrideCommandICant = 3;
64 static const byte kFlagEvent = 1;
65 static const byte kFlagInventory = 2;
66 static const byte kFlagCursor = 3;
69 static const byte kPanNone = 0;
70 static const byte kPan360 = 1;
71 static const byte kPanLeftRight = 2;
74 static const byte kContinueSceneSound = 1;
75 static const byte kLoadSceneSound = 0;
78 static const uint16 kInvertedNode = 77;
79 static const uint16 kNoAutoScroll = 333;
82 static const byte kAbsoluteClockBump = 1;
83 static const byte kRelativeClockBump = 2;
86 static const byte kPlayerDay = 0;
87 static const byte kPlayerNight = 1;
88 static const byte kPlayerDuskDawn = 2;
91 static const byte kSmallVideoFormat = 1;
92 static const byte kLargeVideoFormat = 2;
94 static const byte kVideoPlaytypeAVF = 0;
95 static const byte kVideoPlaytypeBink = 1;
98 static const byte kPlayOverlayPlain = 1;
99 static const byte kPlayOverlayTransparent = 2;
101 static const byte kPlayOverlaySceneChange = 1;
102 static const byte kPlayOverlayNoSceneChange = 2;
104 static const byte kPlayOverlayStatic = 1;
105 static const byte kPlayOverlayAnimated = 2;
107 static const byte kPlayOverlayOnce = 1;
108 static const byte kPlayOverlayLoop = 2;
110 static const byte kPlayOverlayForward = 1;
111 static const byte kPlayOverlayReverse = 2;
113 static const byte kPlayOverlayWithHotspot = 1;
114 static const byte kPlayOverlayNoHotspot = 2;
117 static const byte kNoChangeTableValue = 0;
118 static const byte kIncrementTableValue = 1;
119 static const byte kDecrementTableValue = 2;
120 static const uint16 kNoTableIndex = 99;
121 static const int16 kNoTableValue = 9999;
124 static const uint16 kListLIFO = 0;
125 static const uint16 kListFIFO = 1;
128 static const byte kRotateAroundX = 0;
129 static const byte kRotateAroundY = 1;
130 static const byte kRotateAroundZ = 2;
132 enum MovementDirection : byte { kUp = 1, kDown = 2, kLeft = 4, kRight = 8, kMoveFast = 16 };
135 namespace NancyState {
138 kBoot, kLogo, kCredits, kMap,
139 kMainMenu, kLoadSave, kSetup,
140 kHelp, kScene, kSaveDialog,
151 uint16 sceneID = kNoScene;
153 uint16 verticalOffset = 0;
154 uint16 continueSceneSound = kLoadSceneSound;
158 Math::Vector3d listenerFrontVector = Math::Vector3d(0, 0, 1);
159 uint16 frontVectorFrameID = 0;
189 uint16 staticRectID = 0;
190 uint hasHotspot = kPlayOverlayNoHotspot;
206 int16 frameID = kFrNoFrame;
217 uint32 minTimeDelay = 500;
218 uint32 maxTimeDelay = 2000;
220 int32 randomMoveMinX = 0;
221 int32 randomMoveMaxX = 0;
222 int32 randomMoveMinY = 0;
223 int32 randomMoveMaxY = 0;
224 int32 randomMoveMinZ = 0;
225 int32 randomMoveMaxZ = 0;
231 uint32 moveStepTime = 1000;
232 int32 numMoveSteps = 10;
234 int32 linearMoveStartX = 0;
235 int32 linearMoveEndX = 0;
236 int32 linearMoveStartY = 0;
237 int32 linearMoveEndY = 0;
238 int32 linearMoveStartZ = 0;
239 int32 linearMoveEndZ = 0;
241 int32 rotateMoveStartX = 0;
242 int32 rotateMoveStartY = 0;
243 int32 rotateMoveStartZ = 0;
244 byte rotateMoveAxis = kRotateAroundY;
246 uint32 minDistance = 0;
247 uint32 maxDistance = 0;
255 uint16 channelID = 0;
256 uint16 playCommands = 1;
259 uint16 panAnchorFrame = 0;
260 uint32 samplesPerSec = 0;
261 bool isPanning =
false;
273 enum class StaticDataConditionType { kEvent = 0, kInventory = 1, kDifficulty = 2 };
312 byte numSceneSpecificChannels;
322 uint16 numItems = 11;
323 uint16 numEventFlags = 168;
326 uint16 numCursorTypes = 4;
327 uint32 logoEndAfter = 7000;
328 int16 wonGameFlagID = -1;
352 #endif // NANCY_COMMONYPES_H Definition: commontypes.h:198
Definition: commontypes.h:320
Definition: commontypes.h:150
Definition: commontypes.h:274
Definition: commontypes.h:300
Definition: commontypes.h:276
Definition: commontypes.h:216
Definition: commontypes.h:187
Definition: commontypes.h:293
Definition: commontypes.h:170
Definition: commontypes.h:310
Definition: algorithm.h:29
Definition: commontypes.h:253
Definition: commontypes.h:165
Definition: commontypes.h:205
Definition: commontypes.h:179
Definition: commontypes.h:285
Definition: actionmanager.h:32
Language
Definition: language.h:45