Rev 3 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3 | Rev 12 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | #include <stdint.h> |
4 | #include <stdint.h> |
5 | 5 | ||
6 | #define SCENEID_PREVDECISION 32767 |
6 | #define SCENEID_PREVDECISION 32767 |
7 | #define SCENEID_ENDGAME -1 |
7 | #define SCENEID_ENDGAME -1 |
8 | 8 | ||
- | 9 | #define SEGMENT_BEGINNING 0 |
|
- | 10 | #define SEGMENT_DECISION 1 |
|
- | 11 | ||
9 | #pragma pack(push, 1) |
12 | #pragma pack(push, 1) |
10 | 13 | ||
11 | struct _coord { |
14 | struct _coord { |
12 | int16_t x; |
15 | int16_t x; |
13 | int16_t y; |
16 | int16_t y; |
14 | }; |
17 | }; |
15 | 18 | ||
16 | struct _actionDef { |
19 | struct _actionDef { |
17 | int32_t scoreDelta; |
20 | int32_t scoreDelta; |
18 | int16_t nextSceneID; // will jump to the scene with the name "SC<nextSceneID>" |
21 | int16_t nextSceneID; // will jump to the scene with the name "SCxx", where xx stands for nextSceneID (2 digits at least) |
19 | // 7FFF (32767) = end game |
22 | // 7FFF (32767) = end game |
20 | // FFFF ( -1) = go back to the last decision |
23 | // FFFF ( -1) = go back to the last decision |
21 | int16_t sceneSegment; // 0 = scene from beginning, 1 = decision page |
24 | int16_t sceneSegment; // 0 = scene from beginning, 1 = decision page |
22 | _coord cHotspotTopLeft; |
25 | _coord cHotspotTopLeft; |
23 | _coord cHotspotBottomRigh; |
26 | _coord cHotspotBottomRigh; |