annotate Engine/MM7.h @ 2534:1bcadc6dd203

enum SOUND_
author Ritor1
date Mon, 09 Feb 2015 19:17:12 +0600
parents 68cdef6879a0
children
rev   line source
2499
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
1 #pragma once
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
2 #include <array>
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
3
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
4 typedef unsigned int uint;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
5
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
6 #define PID(type, id) (unsigned int)((((8 * (id))) | (type)) & 0xFFFF) // packed id
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
7 #define PID_TYPE(pid) (unsigned int)((pid) & 7) // extract type
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
8 #define PID_ID(pid) (unsigned int)(((pid) & 0xFFFF) >> 3) // extract value
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
9
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
10
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
11 typedef unsigned __int16 _WORD;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
12 typedef unsigned __int64 _QWORD;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
13
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
14
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
15
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
16
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
17
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
18
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
19
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
20 /* 297 */
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
21 enum SoundType
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
22 {
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
23 SOUND_EndTurnBasedMode = 0xCE,
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
24 SOUND_StartTurnBasedMode = 0xCF,
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
25 SOUND_FlipOnExit = 0x4E21,
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
26 };
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
27
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
28
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
29
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
30 /* 362 */
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
31 #pragma pack(push, 1)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
32 struct TravelInfo
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
33 {
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
34 char uMapID;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
35 char pSchedule[7];
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
36 char uDaysCount;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
37 char field_9[3];
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
38 int x;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
39 int y;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
40 int z;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
41 int direction;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
42 int field_1C;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
43 };
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
44 #pragma pack(pop)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
45
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
46
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
47
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
48
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
49
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
50
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
51
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
52
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
53
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
54
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
55
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
56
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
57 /* 374 */
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
58 #pragma pack(push, 1)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
59 struct stat_coord
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
60 {
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
61 __int16 x;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
62 __int16 y;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
63 __int16 width;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
64 __int16 height;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
65 };
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
66 #pragma pack(pop)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
67 extern std::array<stat_coord, 26> stat_string_coord;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
68
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
69 /* 376 */
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
70 #pragma pack(push, 1)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
71 struct stru336
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
72 {
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
73 int field_0;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
74 int field_4;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
75 int field_8;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
76 int field_C;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
77 int field_10;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
78 int field_14;
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
79 __int16 field_18[480];
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
80 __int16 field_3D8[480];
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
81 };
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
82 #pragma pack(pop)
68cdef6879a0 engine folder
Ritor1
parents:
diff changeset
83