annotate MapInfo.h @ 777:b9f6dd6f1444

Travel by Transport finally works (phew).
author Nomad
date Sun, 24 Mar 2013 00:15:01 +0200
parents 45615cacad31
children b27dd658ea77
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 //...
777
b9f6dd6f1444 Travel by Transport finally works (phew).
Nomad
parents: 767
diff changeset
22 MAP_ARENA = 76,
b9f6dd6f1444 Travel by Transport finally works (phew).
Nomad
parents: 767
diff changeset
23 //...
767
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
24 };
0
Ritor1
parents:
diff changeset
25
Ritor1
parents:
diff changeset
26
Ritor1
parents:
diff changeset
27 /* 192 */
Ritor1
parents:
diff changeset
28 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
29 struct MapInfo
Ritor1
parents:
diff changeset
30 {
Ritor1
parents:
diff changeset
31 int SpawnRandomTreasure(struct SpawnPointMM7 *a2);
Ritor1
parents:
diff changeset
32
Ritor1
parents:
diff changeset
33 char *pName;
Ritor1
parents:
diff changeset
34 char *pFilename;
Ritor1
parents:
diff changeset
35 char *pEncounterMonster1Texture;
Ritor1
parents:
diff changeset
36 char *pEncounterMonster2Texture;
Ritor1
parents:
diff changeset
37 char *pEncounterMonster3Texture;
Ritor1
parents:
diff changeset
38 unsigned int uNumResets;
Ritor1
parents:
diff changeset
39 unsigned int uFirstVisitedAt;
Ritor1
parents:
diff changeset
40 unsigned int uRespawnIntervalDays;
Ritor1
parents:
diff changeset
41 int _alert_days;
Ritor1
parents:
diff changeset
42 int _steal_perm;
Ritor1
parents:
diff changeset
43 int _per;
Ritor1
parents:
diff changeset
44 char field_2C;
237
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
45 char LockX5;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
46 char Trap_D20;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
47 char Treasure_prob;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
48 char Encounter_percent;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
49 char EncM1percent;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
50 char EncM2percent;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
51 char EncM3percent;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
52 char Dif_M1;
0
Ritor1
parents:
diff changeset
53 unsigned __int8 uEncounterMonster1AtLeast;
Ritor1
parents:
diff changeset
54 unsigned __int8 uEncounterMonster1AtMost;
237
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
55 char Dif_M2;
0
Ritor1
parents:
diff changeset
56 unsigned __int8 uEncounterMonster2AtLeast;
Ritor1
parents:
diff changeset
57 unsigned __int8 uEncounterMonster2AtMost;
237
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
58 char Dif_M3;
0
Ritor1
parents:
diff changeset
59 unsigned __int8 uEncounterMonster3AtLeast;
Ritor1
parents:
diff changeset
60 unsigned __int8 uEncounterMonster3AtMost;
Ritor1
parents:
diff changeset
61 char field_3D;
Ritor1
parents:
diff changeset
62 char field_3E;
Ritor1
parents:
diff changeset
63 char field_3F;
Ritor1
parents:
diff changeset
64 unsigned __int8 uRedbookTrackID;
Ritor1
parents:
diff changeset
65 unsigned __int8 uEAXEnv;
Ritor1
parents:
diff changeset
66 char field_42;
Ritor1
parents:
diff changeset
67 char field_43;
Ritor1
parents:
diff changeset
68 };
Ritor1
parents:
diff changeset
69 #pragma pack(pop)
Ritor1
parents:
diff changeset
70
Ritor1
parents:
diff changeset
71
Ritor1
parents:
diff changeset
72
Ritor1
parents:
diff changeset
73 /* 193 */
Ritor1
parents:
diff changeset
74 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
75 struct MapStats
Ritor1
parents:
diff changeset
76 {
Ritor1
parents:
diff changeset
77 void Initialize();
767
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
78 MAP_TYPE GetMapInfo(const char *Str2);
0
Ritor1
parents:
diff changeset
79
Ritor1
parents:
diff changeset
80 MapInfo pInfos[77];
Ritor1
parents:
diff changeset
81 unsigned int uNumMaps;
Ritor1
parents:
diff changeset
82 };
Ritor1
parents:
diff changeset
83 #pragma pack(pop)
Ritor1
parents:
diff changeset
84
Ritor1
parents:
diff changeset
85
Ritor1
parents:
diff changeset
86
Ritor1
parents:
diff changeset
87
Ritor1
parents:
diff changeset
88 extern struct MapStats *pMapStats;