-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgamedefs.h
136 lines (111 loc) · 3.02 KB
/
gamedefs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
// START A3HEADER
//
// This source file is part of the Atlantis PBM game program.
// Copyright (C) 1995-1999 Geoff Dunbar
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program, in the file license.txt. If not, write
// to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
//
// See the Atlantis Project web page for details:
// http://www.prankster.com/project
//
// END A3HEADER
#ifndef GAME_DEFS
#define GAME_DEFS
#include "helper.h"
/* Directions */
enum {
D_NORTH,
D_NORTHEAST,
D_SOUTHEAST,
D_SOUTH,
D_SOUTHWEST,
D_NORTHWEST,
NDIRS
};
extern char **DirectionStrs;
extern char **MonthNames;
class GameDefs {
public:
char *RULESET_NAME;
ATL_VER RULESET_VERSION;
ATL_VER ENGINE_VERSION;
int FOOT_SPEED;
int HORSE_SPEED;
int SHIP_SPEED;
int FLY_SPEED;
int MAX_SPEED;
int WAGON_CAPACITY;
int STUDENTS_PER_TEACHER;
int MAINTENANCE_COST;
int LEADER_COST;
int STARVE_PERCENT;
int START_MONEY;
int WORK_FRACTION;
int ENTERTAIN_FRACTION;
int ENTERTAIN_INCOME;
int TAX_INCOME;
int HEALS_PER_MAN;
int GUARD_REGEN; /* percent */
int CITY_GUARD;
int GUARD_MONEY;
int CITY_POP;
int WMON_FREQUENCY;
int LAIR_FREQUENCY;
int FACTION_POINTS;
int MAX_AC_X;
int MAX_AC_Y;
int TURN_COST;
int TIMES_REWARD;
int TOWNS_EXIST;
int LEADERS_EXIST;
int SKILL_LIMIT_NONLEADERS;
int MAGE_NONLEADERS;
int RACES_EXIST;
int GATES_EXIST;
int FOOD_ITEMS_EXIST;
int CITY_MONSTERS_EXIST;
int WANDERING_MONSTERS_EXIST;
int LAIR_MONSTERS_EXIST;
int WEATHER_EXISTS;
int OPEN_ENDED;
//
// RANDOM_ECONOMY determines whether the economy for different regions
// is randomized, or is always the same.
//
int RANDOM_ECONOMY;
//
// If VARIABLE_ECONOMY is set, the economy of a region is altered after
// each turn.
//
int VARIABLE_ECONOMY;
//
// Some economy figures.
//
int CITY_MARKET_NORMAL_AMT;
int CITY_MARKET_ADVANCED_AMT;
int CITY_MARKET_TRADE_AMT;
//
// The type of faction limits that are in effect in this game.
//
int MAX_INACTIVE_TURNS;
enum {
FACLIM_MAGE_COUNT,
FACLIM_FACTION_TYPES,
};
int FACTION_LIMIT_TYPE;
};
extern GameDefs * Globals;
#endif