annotate MapInfo.h @ 776:3dc4a9b13c1b

travel struct fixed
author Gloval
date Sun, 24 Mar 2013 00:50:35 +0400
parents 45615cacad31
children b9f6dd6f1444
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
767
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
3 enum MAP_TYPE: unsigned __int32
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
4 {
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
5 MAP_INVALID = 0,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
6 MAP_EMERALD_ISLE = 1,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
7 MAP_HARMONDALE = 2,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
8 MAP_STEADWICK = 3,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
9 MAP_PIERPONT = 4,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
10 MAP_DEYJA = 5,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
11 MAP_BRAKADA_DESERT = 6,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
12 MAP_CELESTIA = 7,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
13 MAP_THE_PIT = 8,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
14 MAP_EVENMORN_ISLE = 9,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
15 MAP_MOUNT_NIGHON = 10,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
16 MAP_BARROW_DOWNS = 11,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
17 MAP_LAND_OF_GIANTS = 12,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
18 MAP_TATALIA = 13,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
19 MAP_AVLEE = 14,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
20 MAP_SHOALS = 15,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
21 //...
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
22 };
0
Ritor1
parents:
diff changeset
23
Ritor1
parents:
diff changeset
24
Ritor1
parents:
diff changeset
25 /* 192 */
Ritor1
parents:
diff changeset
26 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
27 struct MapInfo
Ritor1
parents:
diff changeset
28 {
Ritor1
parents:
diff changeset
29 int SpawnRandomTreasure(struct SpawnPointMM7 *a2);
Ritor1
parents:
diff changeset
30
Ritor1
parents:
diff changeset
31 char *pName;
Ritor1
parents:
diff changeset
32 char *pFilename;
Ritor1
parents:
diff changeset
33 char *pEncounterMonster1Texture;
Ritor1
parents:
diff changeset
34 char *pEncounterMonster2Texture;
Ritor1
parents:
diff changeset
35 char *pEncounterMonster3Texture;
Ritor1
parents:
diff changeset
36 unsigned int uNumResets;
Ritor1
parents:
diff changeset
37 unsigned int uFirstVisitedAt;
Ritor1
parents:
diff changeset
38 unsigned int uRespawnIntervalDays;
Ritor1
parents:
diff changeset
39 int _alert_days;
Ritor1
parents:
diff changeset
40 int _steal_perm;
Ritor1
parents:
diff changeset
41 int _per;
Ritor1
parents:
diff changeset
42 char field_2C;
237
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
43 char LockX5;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
44 char Trap_D20;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
45 char Treasure_prob;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
46 char Encounter_percent;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
47 char EncM1percent;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
48 char EncM2percent;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
49 char EncM3percent;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
50 char Dif_M1;
0
Ritor1
parents:
diff changeset
51 unsigned __int8 uEncounterMonster1AtLeast;
Ritor1
parents:
diff changeset
52 unsigned __int8 uEncounterMonster1AtMost;
237
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
53 char Dif_M2;
0
Ritor1
parents:
diff changeset
54 unsigned __int8 uEncounterMonster2AtLeast;
Ritor1
parents:
diff changeset
55 unsigned __int8 uEncounterMonster2AtMost;
237
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
56 char Dif_M3;
0
Ritor1
parents:
diff changeset
57 unsigned __int8 uEncounterMonster3AtLeast;
Ritor1
parents:
diff changeset
58 unsigned __int8 uEncounterMonster3AtMost;
Ritor1
parents:
diff changeset
59 char field_3D;
Ritor1
parents:
diff changeset
60 char field_3E;
Ritor1
parents:
diff changeset
61 char field_3F;
Ritor1
parents:
diff changeset
62 unsigned __int8 uRedbookTrackID;
Ritor1
parents:
diff changeset
63 unsigned __int8 uEAXEnv;
Ritor1
parents:
diff changeset
64 char field_42;
Ritor1
parents:
diff changeset
65 char field_43;
Ritor1
parents:
diff changeset
66 };
Ritor1
parents:
diff changeset
67 #pragma pack(pop)
Ritor1
parents:
diff changeset
68
Ritor1
parents:
diff changeset
69
Ritor1
parents:
diff changeset
70
Ritor1
parents:
diff changeset
71 /* 193 */
Ritor1
parents:
diff changeset
72 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
73 struct MapStats
Ritor1
parents:
diff changeset
74 {
Ritor1
parents:
diff changeset
75 void Initialize();
767
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
76 MAP_TYPE GetMapInfo(const char *Str2);
0
Ritor1
parents:
diff changeset
77
Ritor1
parents:
diff changeset
78 MapInfo pInfos[77];
Ritor1
parents:
diff changeset
79 unsigned int uNumMaps;
Ritor1
parents:
diff changeset
80 };
Ritor1
parents:
diff changeset
81 #pragma pack(pop)
Ritor1
parents:
diff changeset
82
Ritor1
parents:
diff changeset
83
Ritor1
parents:
diff changeset
84
Ritor1
parents:
diff changeset
85
Ritor1
parents:
diff changeset
86 extern struct MapStats *pMapStats;