ScummVM API documentation
locations.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef MM1_DATA_LOCATIONS_H
23 #define MM1_DATA_LOCATIONS_H
24 
25 #include "common/serializer.h"
26 
27 namespace MM {
28 namespace MM1 {
29 
31  const byte BLACKSMITH_CLASS_USAGE[6] = { 0x20, 0x10, 8, 4, 2, 1 };
32 };
33 
34 struct BuyWeaponData {
35  const byte WEAPONS_TOWN1[6] = { 2, 3, 5, 61, 62, 86 };
36  const byte WEAPONS_TOWN2[6] = { 4, 6, 8, 63, 87, 88 };
37  const byte WEAPONS_TOWN3[6] = { 9, 10, 62, 64, 89, 91 };
38  const byte WEAPONS_TOWN4[6] = { 23, 67, 69, 93, 97, 99 };
39  const byte WEAPONS_TOWN5[6] = { 7, 11, 64, 65, 90, 92 };
40  const byte *WEAPONS[5] = {
41  WEAPONS_TOWN1, WEAPONS_TOWN2, WEAPONS_TOWN3,
42  WEAPONS_TOWN4, WEAPONS_TOWN5
43  };
44 };
45 
46 struct BuyArmorData {
47  const byte ARMOR_TOWN1[6] = { 156, 121, 122, 123, 124, 125 };
48  const byte ARMOR_TOWN2[6] = { 156, 157, 121, 122, 123, 124 };
49  const byte ARMOR_TOWN3[6] = { 157, 121, 124, 125, 126, 127 };
50  const byte ARMOR_TOWN4[6] = { 160, 128, 131, 132, 133, 134 };
51  const byte ARMOR_TOWN5[6] = { 157, 123, 124, 125, 126, 127 };
52  const byte *ARMOR[5] = {
53  ARMOR_TOWN1, ARMOR_TOWN2, ARMOR_TOWN3,
54  ARMOR_TOWN4, ARMOR_TOWN5
55  };
56 };
57 
58 struct BuyMiscData {
59  const byte MISC_TOWN1[6] = { 172, 171, 175, 178, 185, 192 };
60  const byte MISC_TOWN2[6] = { 172, 171, 174, 183, 188, 195 };
61  const byte MISC_TOWN3[6] = { 173, 175, 176, 179, 184, 195 };
62  const byte MISC_TOWN4[6] = { 180, 196, 211, 215, 219, 223 };
63  const byte MISC_TOWN5[6] = { 171, 173, 177, 185, 186, 192 };
64  const byte *MISC[5] = {
65  MISC_TOWN1, MISC_TOWN2, MISC_TOWN3,
66  MISC_TOWN4, MISC_TOWN5
67  };
68 };
69 
70 #define MAX_FOOD 40
71 
72 struct MarketData {
73  const byte FOOD_COST[5] = { 5, 10, 20, 200, 50 };
74 };
75 
76 struct TempleData {
77  const uint16 HEAL_COST1[5] = { 2000, 5000, 5000, 2000, 8000 };
78  const uint16 HEAL_COST2[5] = { 200, 500, 500, 200, 1000 };
79  const uint16 HEAL_COST3[5] = { 25, 50, 50, 25, 100 };
80  const uint16 UNCURSE_COST[5] = { 500, 1000, 1000, 1012, 1500 };
81  const uint16 ALIGNMENT_COST[5] = { 250, 200, 200, 200, 250 };
82  const uint16 DONATE_COST[5] = { 100, 100, 100, 25, 200 };
83  const byte ALIGNMENT_VALS[3] = { 8, 0x10, 0x18 };
84  const byte DONATE_VALS[5] = { 1, 2, 4, 8, 0x10 };
85 };
86 
87 struct TrainingData {
88  const int TRAINING_COSTS1[7] = {
89  25, 50, 100, 200, 400, 800, 1500
90  };
91  const int TRAINING_COSTS2[7] = {
92  40, 75, 150, 300, 600, 1200, 2500
93  };
94 };
95 
96 struct TownData {
97  static const byte TOWN_MAP_ID1[5];
98  static const byte TOWN_MAP_ID2[5];
99  static const byte TOWN_MAP_X[5];
100  static const byte TOWN_MAP_Y[5];
101 };
102 
103 } // namespace MM1
104 } // namespace MM
105 
106 #endif
Definition: locations.h:76
Definition: locations.h:30
Definition: locations.h:46
Definition: locations.h:72
Definition: detection.h:27
Definition: locations.h:96
Definition: locations.h:87
Definition: locations.h:34
Definition: locations.h:58