annotate MapInfo.h @ 1147:9ba9fd8e6d68

sub_451007_scale_image_bicubic cleanup - some more code shuffling
author Grumpy7
date Sun, 02 Jun 2013 03:59:13 +0200
parents c45d51b3f4f4
children ee2724b9ca05
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
783
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
3
767
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
4 enum MAP_TYPE: unsigned __int32
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
5 {
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
6 MAP_INVALID = 0,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
7 MAP_EMERALD_ISLE = 1,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
8 MAP_HARMONDALE = 2,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
9 MAP_STEADWICK = 3,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
10 MAP_PIERPONT = 4,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
11 MAP_DEYJA = 5,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
12 MAP_BRAKADA_DESERT = 6,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
13 MAP_CELESTIA = 7,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
14 MAP_THE_PIT = 8,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
15 MAP_EVENMORN_ISLE = 9,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
16 MAP_MOUNT_NIGHON = 10,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
17 MAP_BARROW_DOWNS = 11,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
18 MAP_LAND_OF_GIANTS = 12,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
19 MAP_TATALIA = 13,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
20 MAP_AVLEE = 14,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
21 MAP_SHOALS = 15,
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
22 //...
777
b9f6dd6f1444 Travel by Transport finally works (phew).
Nomad
parents: 767
diff changeset
23 MAP_ARENA = 76,
b9f6dd6f1444 Travel by Transport finally works (phew).
Nomad
parents: 767
diff changeset
24 //...
767
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
25 };
0
Ritor1
parents:
diff changeset
26
783
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
27 enum MapStartPoint: unsigned __int32
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
28 {
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
29 MapStartPoint_Party = 0,
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
30 MapStartPoint_North = 1,
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
31 MapStartPoint_South = 2,
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
32 MapStartPoint_East = 3,
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
33 MapStartPoint_West = 4
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
34 };
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
35
0
Ritor1
parents:
diff changeset
36
Ritor1
parents:
diff changeset
37 /* 192 */
Ritor1
parents:
diff changeset
38 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
39 struct MapInfo
Ritor1
parents:
diff changeset
40 {
Ritor1
parents:
diff changeset
41 int SpawnRandomTreasure(struct SpawnPointMM7 *a2);
Ritor1
parents:
diff changeset
42
Ritor1
parents:
diff changeset
43 char *pName;
Ritor1
parents:
diff changeset
44 char *pFilename;
Ritor1
parents:
diff changeset
45 char *pEncounterMonster1Texture;
Ritor1
parents:
diff changeset
46 char *pEncounterMonster2Texture;
Ritor1
parents:
diff changeset
47 char *pEncounterMonster3Texture;
Ritor1
parents:
diff changeset
48 unsigned int uNumResets;
Ritor1
parents:
diff changeset
49 unsigned int uFirstVisitedAt;
Ritor1
parents:
diff changeset
50 unsigned int uRespawnIntervalDays;
Ritor1
parents:
diff changeset
51 int _alert_days;
Ritor1
parents:
diff changeset
52 int _steal_perm;
Ritor1
parents:
diff changeset
53 int _per;
Ritor1
parents:
diff changeset
54 char field_2C;
237
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
55 char LockX5;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
56 char Trap_D20;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
57 char Treasure_prob;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
58 char Encounter_percent;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
59 char EncM1percent;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
60 char EncM2percent;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
61 char EncM3percent;
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
62 char Dif_M1;
0
Ritor1
parents:
diff changeset
63 unsigned __int8 uEncounterMonster1AtLeast;
Ritor1
parents:
diff changeset
64 unsigned __int8 uEncounterMonster1AtMost;
237
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
65 char Dif_M2;
0
Ritor1
parents:
diff changeset
66 unsigned __int8 uEncounterMonster2AtLeast;
Ritor1
parents:
diff changeset
67 unsigned __int8 uEncounterMonster2AtMost;
237
2799737f8a74 more text parsers refactor
Gloval
parents: 0
diff changeset
68 char Dif_M3;
0
Ritor1
parents:
diff changeset
69 unsigned __int8 uEncounterMonster3AtLeast;
Ritor1
parents:
diff changeset
70 unsigned __int8 uEncounterMonster3AtMost;
Ritor1
parents:
diff changeset
71 char field_3D;
Ritor1
parents:
diff changeset
72 char field_3E;
Ritor1
parents:
diff changeset
73 char field_3F;
Ritor1
parents:
diff changeset
74 unsigned __int8 uRedbookTrackID;
Ritor1
parents:
diff changeset
75 unsigned __int8 uEAXEnv;
Ritor1
parents:
diff changeset
76 char field_42;
Ritor1
parents:
diff changeset
77 char field_43;
Ritor1
parents:
diff changeset
78 };
Ritor1
parents:
diff changeset
79 #pragma pack(pop)
Ritor1
parents:
diff changeset
80
Ritor1
parents:
diff changeset
81
Ritor1
parents:
diff changeset
82
Ritor1
parents:
diff changeset
83 /* 193 */
Ritor1
parents:
diff changeset
84 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
85 struct MapStats
Ritor1
parents:
diff changeset
86 {
Ritor1
parents:
diff changeset
87 void Initialize();
767
45615cacad31 Fog fixed
Nomad
parents: 237
diff changeset
88 MAP_TYPE GetMapInfo(const char *Str2);
0
Ritor1
parents:
diff changeset
89
Ritor1
parents:
diff changeset
90 MapInfo pInfos[77];
Ritor1
parents:
diff changeset
91 unsigned int uNumMaps;
Ritor1
parents:
diff changeset
92 };
Ritor1
parents:
diff changeset
93 #pragma pack(pop)
Ritor1
parents:
diff changeset
94
Ritor1
parents:
diff changeset
95
Ritor1
parents:
diff changeset
96
Ritor1
parents:
diff changeset
97
783
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
98 extern struct MapStats *pMapStats;
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
99
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
100
1016
c45d51b3f4f4 Included header files cleanup
Grumpy7
parents: 783
diff changeset
101 extern MapStartPoint uLevel_StartingPointType; // weak
783
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
102
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
103
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
104 void TeleportToStartingPoint(MapStartPoint point); // idb
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 777
diff changeset
105 void sub_44987B(const char *pMapName, MapStartPoint point); // idb