author | Darkvater |
Mon, 31 Jul 2006 22:40:55 +0000 | |
changeset 4204 | 3aa39be759f2 |
parent 3674 | d6c991bdcbe1 |
child 4277 | 345e1bd9525a |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
0 | 3 |
#ifndef TOWN_H |
4 |
#define TOWN_H |
|
5 |
||
1260
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
6 |
#include "pool.h" |
0 | 7 |
#include "player.h" |
8 |
||
9 |
struct Town { |
|
10 |
TileIndex xy; |
|
11 |
||
12 |
// Current population of people and amount of houses. |
|
13 |
uint16 num_houses; |
|
14 |
uint32 population; |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
121
diff
changeset
|
15 |
|
0 | 16 |
// Town name |
17 |
uint16 townnametype; |
|
18 |
uint32 townnameparts; |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
121
diff
changeset
|
19 |
|
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
121
diff
changeset
|
20 |
// NOSAVE: Location of name sign, UpdateTownVirtCoord updates this. |
0 | 21 |
ViewportSign sign; |
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
121
diff
changeset
|
22 |
|
0 | 23 |
// Makes sure we don't build certain house types twice. |
3432
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
24 |
// bit 0 = Building funds received |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
25 |
// bit 1 = CHURCH |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
26 |
// bit 2 = STADIUM |
0 | 27 |
byte flags12; |
28 |
||
29 |
// Which players have a statue? |
|
30 |
byte statues; |
|
31 |
||
32 |
// Player ratings as well as a mask that determines which players have a rating. |
|
33 |
byte have_ratings; |
|
34 |
uint8 unwanted[MAX_PLAYERS]; // how many months companies aren't wanted by towns (bribe) |
|
2498
3ed05caa4449
(svn r3024) -Codechange: Another batch of replacements of int/uint/int16/byte/-1 with proper types and constants
tron
parents:
2436
diff
changeset
|
35 |
PlayerID exclusivity; // which player has exslusivity |
121
c2f18f4d8be1
(svn r122) Change: exclusive transport rights are now stored per town instead of per station
dominik
parents:
4
diff
changeset
|
36 |
uint8 exclusive_counter; // months till the exclusivity expires |
0 | 37 |
int16 ratings[MAX_PLAYERS]; |
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
121
diff
changeset
|
38 |
|
0 | 39 |
// Maximum amount of passengers and mail that can be transported. |
1377
7ab329d1fc28
(svn r1881) -Fix: [ 1119308 ] Max passengers / mail variables are now 32 bit
celestar
parents:
1362
diff
changeset
|
40 |
uint32 max_pass; |
7ab329d1fc28
(svn r1881) -Fix: [ 1119308 ] Max passengers / mail variables are now 32 bit
celestar
parents:
1362
diff
changeset
|
41 |
uint32 max_mail; |
7ab329d1fc28
(svn r1881) -Fix: [ 1119308 ] Max passengers / mail variables are now 32 bit
celestar
parents:
1362
diff
changeset
|
42 |
uint32 new_max_pass; |
7ab329d1fc28
(svn r1881) -Fix: [ 1119308 ] Max passengers / mail variables are now 32 bit
celestar
parents:
1362
diff
changeset
|
43 |
uint32 new_max_mail; |
7ab329d1fc28
(svn r1881) -Fix: [ 1119308 ] Max passengers / mail variables are now 32 bit
celestar
parents:
1362
diff
changeset
|
44 |
uint32 act_pass; |
7ab329d1fc28
(svn r1881) -Fix: [ 1119308 ] Max passengers / mail variables are now 32 bit
celestar
parents:
1362
diff
changeset
|
45 |
uint32 act_mail; |
7ab329d1fc28
(svn r1881) -Fix: [ 1119308 ] Max passengers / mail variables are now 32 bit
celestar
parents:
1362
diff
changeset
|
46 |
uint32 new_act_pass; |
7ab329d1fc28
(svn r1881) -Fix: [ 1119308 ] Max passengers / mail variables are now 32 bit
celestar
parents:
1362
diff
changeset
|
47 |
uint32 new_act_mail; |
0 | 48 |
|
49 |
// Amount of passengers that were transported. |
|
50 |
byte pct_pass_transported; |
|
51 |
byte pct_mail_transported; |
|
52 |
||
53 |
// Amount of food and paper that was transported. Actually a bit mask would be enough. |
|
54 |
uint16 act_food; |
|
4
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
55 |
uint16 act_water; |
0 | 56 |
uint16 new_act_food; |
4
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
57 |
uint16 new_act_water; |
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
121
diff
changeset
|
58 |
|
0 | 59 |
// Time until we rebuild a house. |
60 |
byte time_until_rebuild; |
|
61 |
||
62 |
// When to grow town next time. |
|
63 |
byte grow_counter; |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
121
diff
changeset
|
64 |
byte growth_rate; |
0 | 65 |
|
66 |
// Fund buildings program in action? |
|
67 |
byte fund_buildings_months; |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
121
diff
changeset
|
68 |
|
0 | 69 |
// Fund road reconstruction in action? |
70 |
byte road_build_months; |
|
71 |
||
72 |
// Index in town array |
|
3346
a0d4def7d934
(svn r4130) - CodeChange: Add proper semantics for TownID for such variables instead of using the general uint16-type. We probably need to change GetTown() and IsTownIndex() as well to use TownID.
Darkvater
parents:
2958
diff
changeset
|
73 |
TownID index; |
0 | 74 |
|
75 |
// NOSAVE: UpdateTownRadius updates this given the house count. |
|
76 |
uint16 radius[5]; |
|
77 |
}; |
|
78 |
||
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1080
diff
changeset
|
79 |
uint32 GetWorldPopulation(void); |
0 | 80 |
|
835
f6a341f541d7
(svn r1312) -Add: Patch which is on by default: population in label of the town
truelight
parents:
820
diff
changeset
|
81 |
void UpdateTownVirtCoord(Town *t); |
1093
4fdc46eaf423
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
1080
diff
changeset
|
82 |
void InitializeTown(void); |
3346
a0d4def7d934
(svn r4130) - CodeChange: Add proper semantics for TownID for such variables instead of using the general uint16-type. We probably need to change GetTown() and IsTownIndex() as well to use TownID.
Darkvater
parents:
2958
diff
changeset
|
83 |
void ShowTownViewWindow(TownID town); |
0 | 84 |
void DeleteTown(Town *t); |
85 |
void ExpandTown(Town *t); |
|
3674
d6c991bdcbe1
(svn r4591) -Fix (FS#122) Game no longer errors out when "Many random towns" is selected in the scenario editor.
celestar
parents:
3432
diff
changeset
|
86 |
Town *CreateRandomTown(uint attempts, uint size_mode); |
0 | 87 |
|
88 |
enum { |
|
89 |
ROAD_REMOVE = 0, |
|
90 |
UNMOVEABLE_REMOVE = 1, |
|
91 |
TUNNELBRIDGE_REMOVE = 1, |
|
92 |
INDUSTRY_REMOVE = 2 |
|
93 |
}; |
|
94 |
||
1005 | 95 |
enum { |
96 |
// These refer to the maximums, so Appalling is -1000 to -400 |
|
97 |
// MAXIMUM RATINGS BOUNDARIES |
|
3432
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
98 |
RATING_MINIMUM = -1000, |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
99 |
RATING_APPALLING = -400, |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
100 |
RATING_VERYPOOR = -200, |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
101 |
RATING_POOR = 0, |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
102 |
RATING_MEDIOCRE = 200, |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
103 |
RATING_GOOD = 400, |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
104 |
RATING_VERYGOOD = 600, |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
105 |
RATING_EXCELLENT = 800, |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
106 |
RATING_OUTSTANDING = 1000, // OUTSTANDING |
1005 | 107 |
|
108 |
RATING_MAXIMUM = RATING_OUTSTANDING, |
|
109 |
||
110 |
// RATINGS AFFECTING NUMBERS |
|
111 |
RATING_TREE_DOWN_STEP = -35, |
|
112 |
RATING_TREE_MINIMUM = RATING_MINIMUM, |
|
113 |
RATING_TREE_UP_STEP = 7, |
|
114 |
RATING_TREE_MAXIMUM = 220, |
|
115 |
||
116 |
RATING_TUNNEL_BRIDGE_DOWN_STEP = -250, |
|
117 |
RATING_TUNNEL_BRIDGE_MINIMUM = 0, |
|
118 |
||
119 |
RATING_INDUSTRY_DOWN_STEP = -1500, |
|
120 |
RATING_INDUSTRY_MINIMUM = RATING_MINIMUM, |
|
121 |
||
122 |
RATING_ROAD_DOWN_STEP = -50, |
|
123 |
RATING_ROAD_MINIMUM = -100, |
|
124 |
RATING_HOUSE_MINIMUM = RATING_MINIMUM, |
|
125 |
||
126 |
RATING_BRIBE_UP_STEP = 200, |
|
127 |
RATING_BRIBE_MAXIMUM = 800, |
|
3432
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
128 |
RATING_BRIBE_DOWN_TO = -50 // XXX SHOULD BE SOMETHING LOWER? |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
129 |
}; |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
130 |
|
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
131 |
enum { |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
132 |
/* This is the base "normal" number of towns on the 8x8 map, when |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
133 |
* one town should get grown per tick. The other numbers of towns |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
134 |
* are then scaled based on that. */ |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
135 |
TOWN_GROWTH_FREQUENCY = 23, |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
136 |
/* Simple value that indicates the house has reached final stage of construction*/ |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
137 |
TOWN_HOUSE_COMPLETED = 3, |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
138 |
}; |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
139 |
|
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
140 |
/* This enum is used in conjonction with town->flags12. |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
141 |
* IT simply states what bit is used for. |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
142 |
* It is pretty unrealistic (IMHO) to only have one church/stadium |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
143 |
* per town, NO MATTER the population of it. |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
144 |
* And there are 5 more bits available on flags12... |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
145 |
*/ |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
146 |
enum { |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
147 |
TOWN_IS_FUNDED = 0, // Town has received some funds for |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
148 |
TOWN_HAS_CHURCH = 1, // There can be only one church by town. |
650dd1972479
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
belugas
parents:
3349
diff
changeset
|
149 |
TOWN_HAS_STADIUM = 2 // There can be only one stadium by town. |
1005 | 150 |
}; |
151 |
||
2958
ac0a9673b522
(svn r3520) Remove unused parameters from some functions
tron
parents:
2817
diff
changeset
|
152 |
bool CheckforTownRating(uint32 flags, Town *t, byte type); |
0 | 153 |
|
3346
a0d4def7d934
(svn r4130) - CodeChange: Add proper semantics for TownID for such variables instead of using the general uint16-type. We probably need to change GetTown() and IsTownIndex() as well to use TownID.
Darkvater
parents:
2958
diff
changeset
|
154 |
VARDEF TownID *_town_sort; |
919
544f374ee392
(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns and _industries
truelight
parents:
835
diff
changeset
|
155 |
|
1260
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
156 |
extern MemoryPool _town_pool; |
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
157 |
|
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
158 |
/** |
1330
5d76a0522a11
(svn r1834) - Fix: NPF does not check the owner of its target, busses try to enter other players' depots. TODO
matthijs
parents:
1260
diff
changeset
|
159 |
* Check if a Town really exists. |
5d76a0522a11
(svn r1834) - Fix: NPF does not check the owner of its target, busses try to enter other players' depots. TODO
matthijs
parents:
1260
diff
changeset
|
160 |
*/ |
2436
7d5df545bd5d
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
Darkvater
parents:
2186
diff
changeset
|
161 |
static inline bool IsValidTown(const Town* town) |
1330
5d76a0522a11
(svn r1834) - Fix: NPF does not check the owner of its target, busses try to enter other players' depots. TODO
matthijs
parents:
1260
diff
changeset
|
162 |
{ |
5d76a0522a11
(svn r1834) - Fix: NPF does not check the owner of its target, busses try to enter other players' depots. TODO
matthijs
parents:
1260
diff
changeset
|
163 |
return town->xy != 0; /* XXX: Replace by INVALID_TILE someday */ |
5d76a0522a11
(svn r1834) - Fix: NPF does not check the owner of its target, busses try to enter other players' depots. TODO
matthijs
parents:
1260
diff
changeset
|
164 |
} |
5d76a0522a11
(svn r1834) - Fix: NPF does not check the owner of its target, busses try to enter other players' depots. TODO
matthijs
parents:
1260
diff
changeset
|
165 |
|
5d76a0522a11
(svn r1834) - Fix: NPF does not check the owner of its target, busses try to enter other players' depots. TODO
matthijs
parents:
1260
diff
changeset
|
166 |
/** |
1260
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
167 |
* Get the pointer to the town with index 'index' |
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
168 |
*/ |
919
544f374ee392
(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns and _industries
truelight
parents:
835
diff
changeset
|
169 |
static inline Town *GetTown(uint index) |
544f374ee392
(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns and _industries
truelight
parents:
835
diff
changeset
|
170 |
{ |
1260
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
171 |
return (Town*)GetItemFromPool(&_town_pool, index); |
919
544f374ee392
(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns and _industries
truelight
parents:
835
diff
changeset
|
172 |
} |
544f374ee392
(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns and _industries
truelight
parents:
835
diff
changeset
|
173 |
|
1260
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
174 |
/** |
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
175 |
* Get the current size of the TownPool |
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
176 |
*/ |
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
177 |
static inline uint16 GetTownPoolSize(void) |
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
178 |
{ |
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
179 |
return _town_pool.total_items; |
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
180 |
} |
919
544f374ee392
(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns and _industries
truelight
parents:
835
diff
changeset
|
181 |
|
1784
d0698aac0c2e
(svn r2288) - CodeChange: protected the next batch of commands (41 so far, out of 115).
Darkvater
parents:
1377
diff
changeset
|
182 |
static inline bool IsTownIndex(uint index) |
d0698aac0c2e
(svn r2288) - CodeChange: protected the next batch of commands (41 so far, out of 115).
Darkvater
parents:
1377
diff
changeset
|
183 |
{ |
d0698aac0c2e
(svn r2288) - CodeChange: protected the next batch of commands (41 so far, out of 115).
Darkvater
parents:
1377
diff
changeset
|
184 |
return index < GetTownPoolSize(); |
d0698aac0c2e
(svn r2288) - CodeChange: protected the next batch of commands (41 so far, out of 115).
Darkvater
parents:
1377
diff
changeset
|
185 |
} |
d0698aac0c2e
(svn r2288) - CodeChange: protected the next batch of commands (41 so far, out of 115).
Darkvater
parents:
1377
diff
changeset
|
186 |
|
1260
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
187 |
#define FOR_ALL_TOWNS_FROM(t, start) for (t = GetTown(start); t != NULL; t = (t->index + 1 < GetTownPoolSize()) ? GetTown(t->index + 1) : NULL) |
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
188 |
#define FOR_ALL_TOWNS(t) FOR_ALL_TOWNS_FROM(t, 0) |
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
189 |
|
632f63689178
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
truelight
parents:
1220
diff
changeset
|
190 |
VARDEF uint _total_towns; // For the AI: the amount of towns active |
0 | 191 |
|
192 |
VARDEF bool _town_sort_dirty; |
|
193 |
VARDEF byte _town_sort_order; |
|
194 |
||
195 |
VARDEF Town *_cleared_town; |
|
196 |
VARDEF int _cleared_town_rating; |
|
197 |
||
198 |
#endif /* TOWN_H */ |