Freeciv-3.3: /fast/freeciv/nightly/main/common/nation.h Source File

Freeciv-3.3

Loading...
Searching...
No Matches
nation.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__NATION_H
14#define FC__NATION_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20/* utility */
21#include "iterator.h"
22
23/* common */
24#include "fc_types.h"
25#include "name_translation.h"
26#include "terrain.h" /* MAX_NUM_TERRAINS */
27
28struct rgbcolor;
29
30#define NO_NATION_SELECTED (NULL)
31
32/* Changing this value will break network compatibility. */
33#define NATION_NONE -1
34#define NATION_ANY -2
35
36/* Nation city (server only). */
37struct nation_city;
38
39 enum nation_city_preference {
40 NCP_DISLIKE = -1,
41 NCP_NONE = 0,
42 NCP_LIKE = 1
43};
44
45#define SPECLIST_TAG nation_city
46#define SPECLIST_TYPE struct nation_city
47#include "speclist.h"
48#define nation_city_list_iterate(citylist, pncity) \
49 TYPED_LIST_ITERATE(struct nation_city, citylist, pncity)
50#define nation_city_list_iterate_end LIST_ITERATE_END
51
52/* Nation leader. */
53struct nation_leader;
54#define SPECLIST_TAG nation_leader
55#define SPECLIST_TYPE struct nation_leader
56#include "speclist.h"
57#define nation_leader_list_iterate(leaderlist, pleader) \
58 TYPED_LIST_ITERATE(struct nation_leader, leaderlist, pleader)
59#define nation_leader_list_iterate_end LIST_ITERATE_END
60
61/* Nation set. */
62struct nation_set;
63#define SPECLIST_TAG nation_set
64#define SPECLIST_TYPE struct nation_set
65#include "speclist.h"
66#define nation_set_list_iterate(setlist, pset) \
67 TYPED_LIST_ITERATE(struct nation_set, setlist, pset)
68#define nation_set_list_iterate_end LIST_ITERATE_END
69
70/* Nation group. */
71struct nation_group;
72#define SPECLIST_TAG nation_group
73#define SPECLIST_TYPE struct nation_group
74#include "speclist.h"
75#define nation_group_list_iterate(grouplist, pgroup) \
76 TYPED_LIST_ITERATE(struct nation_group, grouplist, pgroup)
77#define nation_group_list_iterate_end LIST_ITERATE_END
78
79/* Nation list. */
80struct nation_type;
81#define SPECLIST_TAG nation
82#define SPECLIST_TYPE struct nation_type
83#include "speclist.h"
84#define nation_list_iterate(nationlist, pnation) \
85 TYPED_LIST_ITERATE(struct nation_type, nationlist, pnation)
86#define nation_list_iterate_end LIST_ITERATE_END
87
88/* Nation hash. */
89#define SPECHASH_TAG nation
90#define SPECHASH_IKEY_TYPE struct nation_type *
91#define SPECHASH_IDATA_TYPE void *
92#include "spechash.h"
93#define nation_hash_iterate(nationhash, pnation) \
94 TYPED_HASH_KEYS_ITERATE(struct nation_type *, nationhash, pnation)
95#define nation_hash_iterate_end HASH_KEYS_ITERATE_END
96
97/* Pointer values are allocated on load then freed in free_nations(). */
98 struct nation_type {
99 Nation_type_id item_number;
100 char *translation_domain;
101 struct name_translation adjective;
102 struct name_translation noun_plural;
103 char flag_graphic_str[MAX_LEN_NAME];
104 char flag_graphic_alt[MAX_LEN_NAME];
105 struct nation_leader_list *leaders;
106 struct nation_style *style;
107 char *legend; /* may be empty */
108
109 bool is_playable;
110 enum barbarian_type barb_type;
111
112 /* Sets which this nation is assigned to */
113 struct nation_set_list *sets;
114
115 /* Groups which this nation is assigned to */
116 struct nation_group_list *groups;
117
118 struct player *player; /* Who's using the nation, or NULL. */
119
120 /* Items given to this nation at game start. */
121 /* (Only used in the client for documentation purposes.) */
122 int init_techs[MAX_NUM_TECH_LIST];
123 int init_buildings[MAX_NUM_BUILDING_LIST];
124 struct government *init_government; /* use game default_government if NULL */
125 struct unit_type *init_units[MAX_NUM_UNIT_LIST];
126
127 union {
128 struct {
129 /* Only used in the server (./ai/ and ./server/). */
130
131 struct nation_city_list *default_cities;
132
133 /* 'civilwar_nations' is a list of the nations that can fork from
134 * this one. 'parent_nations' is the inverse of this list. */
135 struct nation_list *civilwar_nations;
136 struct nation_list *parent_nations;
137
138 /* Nations which we don't want in the same game. For example,
139 * British and English. */
140 struct nation_list *conflicts_with;
141
142 /* Nation's associated player color (NULL if none). */
143 struct rgbcolor *rgb;
144
145 struct trait_limits *traits;
146
147 /* This nation has no start position in the current scenario. */
148 bool no_startpos;
149 } server;
150
151 struct {
152 /* Only used at the client. */
153
154 /* Whether the client is allowed to try to pick the nation at game
155 * start. Reasons for restricting this include lack of start positions
156 * in a scenario, or a nation outside the current nationset. However,
157 * in some circumstances the server may decide to put a nation with this
158 * flag in the game anyway, so the client can't rely on its absence.
159 * (On the server this is calculated on the fly from other values.
160 * Use is_nation_pickable() to get the answer on client or server.) */
161 bool is_pickable;
162 } client;
163 };
164};
165
166/* Nation group structure. */
167 struct nation_group {
168 struct name_translation name;
169 bool hidden;
170
171 union {
172 struct {
173 /* Only used in the server (./server/). */
174
175 /* How much the AI will try to select a nation in the same group */
176 int match;
177 } server;
178
179 /* Add client side when needed */
180 };
181};
182
183/* General nation accessor functions. */
184 Nation_type_id nation_count(void);
185 Nation_type_id nation_index(const struct nation_type *pnation);
186 Nation_type_id nation_number(const struct nation_type *pnation);
187
188struct nation_type *nation_by_number(const Nation_type_id nation);
189struct nation_type *nation_of_player(const struct player *pplayer);
190struct nation_type *nation_of_city(const struct city *pcity);
191struct nation_type *nation_of_unit(const struct unit *punit);
192
193struct nation_type *nation_by_rule_name(const char *name);
194struct nation_type *nation_by_translated_plural(const char *name);
195
196const char *nation_rule_name(const struct nation_type *pnation);
197
198const char *nation_adjective_translation(const struct nation_type *pnation);
199const char *nation_adjective_for_player(const struct player *pplayer);
200const char *nation_plural_translation(const struct nation_type *pnation);
201const char *nation_plural_for_player(const struct player *pplayer);
202
203struct government *init_government_of_nation(const struct nation_type *pnation);
204
205struct nation_style *style_of_nation(const struct nation_type *pnation);
206
207const struct rgbcolor *nation_color(const struct nation_type *pnation);
208
209/* Ancillary nation routines */
210bool is_nation_pickable(const struct nation_type *nation);
211bool is_nation_playable(const struct nation_type *nation);
212enum barbarian_type nation_barbarian_type(const struct nation_type *nation);
213bool can_conn_edit_players_nation(const struct connection *pconn,
214 const struct player *pplayer);
215
216/* General nation leader accessor functions. */
217const struct nation_leader_list *
218 nation_leaders(const struct nation_type *pnation);
219struct nation_leader *nation_leader_new(struct nation_type *pnation,
220 const char *name, bool is_male);
221struct nation_leader *
222 nation_leader_by_name(const struct nation_type *pnation, const char *name);
223const char *nation_leader_name(const struct nation_leader *pleader);
224bool nation_leader_is_male(const struct nation_leader *pleader);
225
226const char *nation_legend_translation(const struct nation_type *pnation,
227 const char *legend);
228
229/* General nation city accessor functions. */
230struct terrain;
231
232const struct nation_city_list *
233 nation_cities(const struct nation_type *pnation);
234struct nation_city *nation_city_new(struct nation_type *pnation,
235 const char *name);
236
237const char *nation_city_name(const struct nation_city *pncity);
238
239enum nation_city_preference
240 nation_city_preference_revert(enum nation_city_preference prefer);
241void nation_city_set_terrain_preference(struct nation_city *pncity,
242 const struct terrain *pterrain,
243 enum nation_city_preference prefer);
244void nation_city_set_river_preference(struct nation_city *pncity,
245 enum nation_city_preference prefer);
246enum nation_city_preference
247 nation_city_terrain_preference(const struct nation_city *pncity,
248 const struct terrain *pterrain);
249enum nation_city_preference
250 nation_city_river_preference(const struct nation_city *pncity);
251
252/* General nation set accessor routines */
253int nation_set_count(void);
254int nation_set_index(const struct nation_set *pset);
255int nation_set_number(const struct nation_set *pset);
256
257struct nation_set *nation_set_new(const char *set_name,
258 const char *set_rule_name,
259 const char *set_description);
260struct nation_set *nation_set_by_number(int id);
261struct nation_set *nation_set_by_rule_name(const char *name);
262
263const char *nation_set_untranslated_name(const struct nation_set *pset);
264const char *nation_set_rule_name(const struct nation_set *pset);
265const char *nation_set_name_translation(const struct nation_set *pset);
266const char *nation_set_description(const struct nation_set *pset);
267
268bool nation_is_in_set(const struct nation_type *pnation,
269 const struct nation_set *pset);
270
271struct nation_set *nation_set_by_setting_value(const char *setting);
272
273/* General nation group accessor routines */
274int nation_group_count(void);
275int nation_group_index(const struct nation_group *pgroup);
276int nation_group_number(const struct nation_group *pgroup);
277
278struct nation_group *nation_group_new(const char *name);
279struct nation_group *nation_group_by_number(int id);
280struct nation_group *nation_group_by_rule_name(const char *name);
281
282void nation_group_set_hidden(struct nation_group *pgroup, bool hidden);
283void nation_group_set_match(struct nation_group *pgroup, int match);
284bool is_nation_group_hidden(struct nation_group *pgroup);
285
286const char *nation_group_untranslated_name(const struct nation_group *pgroup);
287const char *nation_group_rule_name(const struct nation_group *pgroup);
288const char *nation_group_name_translation(const struct nation_group *pgroup);
289
290bool nation_is_in_group(const struct nation_type *pnation,
291 const struct nation_group *pgroup);
292
293/* Initialization and iteration */
294void nation_sets_groups_init(void);
295void nation_sets_groups_free(void);
296
297struct nation_set_iter;
298size_t nation_set_iter_sizeof(void);
299struct iterator *nation_set_iter_init(struct nation_set_iter *it);
300
301#define nation_sets_iterate(NAME_pset) \
302 generic_iterate(struct nation_set_iter, struct nation_set *, \
303 NAME_pset, nation_set_iter_sizeof, \
304 nation_set_iter_init)
305#define nation_sets_iterate_end generic_iterate_end
306
307struct nation_group_iter;
308size_t nation_group_iter_sizeof(void);
309struct iterator *nation_group_iter_init(struct nation_group_iter *it);
310
311#define nation_groups_iterate(NAME_pgroup) \
312 generic_iterate(struct nation_group_iter, struct nation_group *, \
313 NAME_pgroup, nation_group_iter_sizeof, \
314 nation_group_iter_init)
315#define nation_groups_iterate_end generic_iterate_end
316
317/* Initialization and iteration */
318void nations_alloc(int num);
319void nations_free(void);
320
321int nations_match(const struct nation_type *pnation1,
322 const struct nation_type *pnation2,
323 bool ignore_conflicts);
324
325struct nation_iter;
326size_t nation_iter_sizeof(void);
327struct iterator *nation_iter_init(struct nation_iter *it);
328
329/* Iterate over nations. This iterates over _all_ nations, including
330 * unplayable ones (use is_nation_playable to filter if necessary).
331 * This does not take account of the current nationset! -- on the
332 * server, use allowed_nations_iterate() for that. */
333#define nations_iterate(NAME_pnation)\
334 generic_iterate(struct nation_iter, struct nation_type *,\
335 NAME_pnation, nation_iter_sizeof, nation_iter_init)
336#define nations_iterate_end generic_iterate_end
337
338/* Deletion of nations not supported */
339#define nations_re_active_iterate(_pnat_) \
340 nations_iterate(_pnat_)
341
342#define nations_re_active_iterate_end \
343 nations_iterate_end;
344
345#ifdef __cplusplus
346}
347#endif /* __cplusplus */
348
349#endif /* FC__NATION_H */
client
struct civclient client
Definition client_main.c:153
incite_cost
char * incite_cost
Definition comments.c:74
punit
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
Definition dialogs_g.h:74
fc_types.h
MAX_NUM_BUILDING_LIST
#define MAX_NUM_BUILDING_LIST
Definition fc_types.h:46
Nation_type_id
int Nation_type_id
Definition fc_types.h:384
MAX_NUM_UNIT_LIST
#define MAX_NUM_UNIT_LIST
Definition fc_types.h:45
MAX_LEN_NAME
#define MAX_LEN_NAME
Definition fc_types.h:66
MAX_NUM_TECH_LIST
#define MAX_NUM_TECH_LIST
Definition fc_types.h:44
name
const char * name
Definition inputfile.c:127
iterator.h
name_translation.h
nation_group_set_match
void nation_group_set_match(struct nation_group *pgroup, int match)
Definition nation.c:1047
nations_free
void nations_free(void)
Definition nation.c:637
nation_city_name
const char * nation_city_name(const struct nation_city *pncity)
Definition nation.c:412
nation_group_untranslated_name
const char * nation_group_untranslated_name(const struct nation_group *pgroup)
Definition nation.c:1069
nation_cities
const struct nation_city_list * nation_cities(const struct nation_type *pnation)
Definition nation.c:331
nation_group_by_rule_name
struct nation_group * nation_group_by_rule_name(const char *name)
Definition nation.c:1021
nation_by_translated_plural
struct nation_type * nation_by_translated_plural(const char *name)
Definition nation.c:106
nation_rule_name
const char * nation_rule_name(const struct nation_type *pnation)
Definition nation.c:138
nation_city_preference_revert
enum nation_city_preference nation_city_preference_revert(enum nation_city_preference prefer)
Definition nation.c:371
nation_group_index
int nation_group_index(const struct nation_group *pgroup)
Definition nation.c:943
nation_count
Nation_type_id nation_count(void)
Definition nation.c:507
nation_number
Nation_type_id nation_number(const struct nation_type *pnation)
Definition nation.c:486
nation_group_new
struct nation_group * nation_group_new(const char *name)
Definition nation.c:960
nation_leader_by_name
struct nation_leader * nation_leader_by_name(const struct nation_type *pnation, const char *name)
Definition nation.c:267
nation_set_iter_init
struct iterator * nation_set_iter_init(struct nation_set_iter *it)
Definition nation.c:922
nations_match
int nations_match(const struct nation_type *pnation1, const struct nation_type *pnation2, bool ignore_conflicts)
Definition nation.c:1206
nation_of_unit
struct nation_type * nation_of_unit(const struct unit *punit)
Definition nation.c:463
nation_leader_is_male
bool nation_leader_is_male(const struct nation_leader *pleader)
Definition nation.c:290
nation_adjective_for_player
const char * nation_adjective_for_player(const struct player *pplayer)
Definition nation.c:169
nation_set_iter_sizeof
size_t nation_set_iter_sizeof(void)
Definition nation.c:889
nation_set_new
struct nation_set * nation_set_new(const char *set_name, const char *set_rule_name, const char *set_description)
Definition nation.c:716
nation_adjective_translation
const char * nation_adjective_translation(const struct nation_type *pnation)
Definition nation.c:149
nation_by_number
struct nation_type * nation_by_number(const Nation_type_id nation)
Definition nation.c:475
nation_set_index
int nation_set_index(const struct nation_set *pset)
Definition nation.c:699
nation_city_new
struct nation_city * nation_city_new(struct nation_type *pnation, const char *name)
Definition nation.c:342
nation_city_terrain_preference
enum nation_city_preference nation_city_terrain_preference(const struct nation_city *pncity, const struct terrain *pterrain)
Definition nation.c:422
is_nation_pickable
bool is_nation_pickable(const struct nation_type *nation)
Definition nation.c:188
nation_leaders
const struct nation_leader_list * nation_leaders(const struct nation_type *pnation)
Definition nation.c:230
nation_set_name_translation
const char * nation_set_name_translation(const struct nation_set *pset)
Definition nation.c:818
nation_group_rule_name
const char * nation_group_rule_name(const struct nation_group *pgroup)
Definition nation.c:1079
nation_of_player
struct nation_type * nation_of_player(const struct player *pplayer)
Definition nation.c:444
nation_set_untranslated_name
const char * nation_set_untranslated_name(const struct nation_set *pset)
Definition nation.c:797
nation_of_city
struct nation_type * nation_of_city(const struct city *pcity)
Definition nation.c:454
is_nation_playable
bool is_nation_playable(const struct nation_type *nation)
Definition nation.c:200
nation_iter_init
struct iterator * nation_iter_init(struct nation_iter *it)
Definition nation.c:557
nation_sets_groups_free
void nation_sets_groups_free(void)
Definition nation.c:1178
nation_set_number
int nation_set_number(const struct nation_set *pset)
Definition nation.c:708
nation_color
const struct rgbcolor * nation_color(const struct nation_type *pnation)
Definition nation.c:682
nation_city_set_terrain_preference
void nation_city_set_terrain_preference(struct nation_city *pncity, const struct terrain *pterrain, enum nation_city_preference prefer)
Definition nation.c:390
nation_group_iter_init
struct iterator * nation_group_iter_init(struct nation_group_iter *it)
Definition nation.c:1157
nation_city_preference
nation_city_preference
Definition nation.h:39
NCP_NONE
@ NCP_NONE
Definition nation.h:41
NCP_DISLIKE
@ NCP_DISLIKE
Definition nation.h:40
NCP_LIKE
@ NCP_LIKE
Definition nation.h:42
nation_city_set_river_preference
void nation_city_set_river_preference(struct nation_city *pncity, enum nation_city_preference prefer)
Definition nation.c:402
nation_is_in_group
bool nation_is_in_group(const struct nation_type *pnation, const struct nation_group *pgroup)
Definition nation.c:1099
nation_is_in_set
bool nation_is_in_set(const struct nation_type *pnation, const struct nation_set *pset)
Definition nation.c:837
nation_set_description
const char * nation_set_description(const struct nation_set *pset)
Definition nation.c:828
nation_group_name_translation
const char * nation_group_name_translation(const struct nation_group *pgroup)
Definition nation.c:1090
nation_city_river_preference
enum nation_city_preference nation_city_river_preference(const struct nation_city *pncity)
Definition nation.c:434
nation_set_count
int nation_set_count(void)
Definition nation.c:691
nation_sets_groups_init
void nation_sets_groups_init(void)
Definition nation.c:1170
nation_set_by_number
struct nation_set * nation_set_by_number(int id)
Definition nation.c:762
nation_by_rule_name
struct nation_type * nation_by_rule_name(const char *name)
Definition nation.c:121
nation_group_by_number
struct nation_group * nation_group_by_number(int id)
Definition nation.c:1004
nation_plural_translation
const char * nation_plural_translation(const struct nation_type *pnation)
Definition nation.c:159
nation_set_by_rule_name
struct nation_set * nation_set_by_rule_name(const char *name)
Definition nation.c:779
is_nation_group_hidden
bool is_nation_group_hidden(struct nation_group *pgroup)
Definition nation.c:1057
can_conn_edit_players_nation
bool can_conn_edit_players_nation(const struct connection *pconn, const struct player *pplayer)
Definition nation.c:1187
nation_set_by_setting_value
struct nation_set * nation_set_by_setting_value(const char *setting)
Definition nation.c:859
nation_index
Nation_type_id nation_index(const struct nation_type *pnation)
Definition nation.c:498
nation_leader_name
const char * nation_leader_name(const struct nation_leader *pleader)
Definition nation.c:281
nation_group_count
int nation_group_count(void)
Definition nation.c:935
nation_set_rule_name
const char * nation_set_rule_name(const struct nation_set *pset)
Definition nation.c:807
nation_leader_new
struct nation_leader * nation_leader_new(struct nation_type *pnation, const char *name, bool is_male)
Definition nation.c:239
nation_group_set_hidden
void nation_group_set_hidden(struct nation_group *pgroup, bool hidden)
Definition nation.c:1037
nations_alloc
void nations_alloc(int num)
Definition nation.c:622
nation_barbarian_type
enum barbarian_type nation_barbarian_type(const struct nation_type *nation)
Definition nation.c:211
nation_plural_for_player
const char * nation_plural_for_player(const struct player *pplayer)
Definition nation.c:178
nation_iter_sizeof
size_t nation_iter_sizeof(void)
Definition nation.c:524
nation_group_number
int nation_group_number(const struct nation_group *pgroup)
Definition nation.c:952
nation_group_iter_sizeof
size_t nation_group_iter_sizeof(void)
Definition nation.c:1124
init_government_of_nation
struct government * init_government_of_nation(const struct nation_type *pnation)
Definition nation.c:659
style_of_nation
struct nation_style * style_of_nation(const struct nation_type *pnation)
Definition nation.c:672
nation_legend_translation
const char * nation_legend_translation(const struct nation_type *pnation, const char *legend)
Definition nation.c:299
spechash.h
speclist.h
city
Definition city.h:320
connection
Definition connection.h:136
government
Definition government.h:52
iterator
Definition iterator.h:31
name_translation
Definition name_translation.h:35
nation_city
Definition nation.c:321
nation_group_iter
Definition nation.c:1115
nation_group
Definition nation.h:167
nation_group::match
int match
Definition nation.h:176
nation_group::name
struct name_translation name
Definition nation.h:168
nation_group::hidden
bool hidden
Definition nation.h:169
nation_iter
Definition nation.c:515
nation_leader
Definition nation.c:221
nation_leader::is_male
bool is_male
Definition nation.c:223
nation_set_iter
Definition nation.c:880
nation_set
Definition nation.c:41
nation_style
Definition style.h:22
nation_type
Definition nation.h:98
nation_type::init_buildings
int init_buildings[MAX_NUM_BUILDING_LIST]
Definition nation.h:123
nation_type::conflicts_with
struct nation_list * conflicts_with
Definition nation.h:140
nation_type::groups
struct nation_group_list * groups
Definition nation.h:116
nation_type::noun_plural
struct name_translation noun_plural
Definition nation.h:102
nation_type::parent_nations
struct nation_list * parent_nations
Definition nation.h:136
nation_type::sets
struct nation_set_list * sets
Definition nation.h:113
nation_type::flag_graphic_str
char flag_graphic_str[MAX_LEN_NAME]
Definition nation.h:103
nation_type::adjective
struct name_translation adjective
Definition nation.h:101
nation_type::rgb
struct rgbcolor * rgb
Definition nation.h:143
nation_type::traits
struct trait_limits * traits
Definition nation.h:145
nation_type::flag_graphic_alt
char flag_graphic_alt[MAX_LEN_NAME]
Definition nation.h:104
nation_type::init_government
struct government * init_government
Definition nation.h:124
nation_type::is_pickable
bool is_pickable
Definition nation.h:161
nation_type::init_units
struct unit_type * init_units[MAX_NUM_UNIT_LIST]
Definition nation.h:125
nation_type::leaders
struct nation_leader_list * leaders
Definition nation.h:105
nation_type::legend
char * legend
Definition nation.h:107
nation_type::item_number
Nation_type_id item_number
Definition nation.h:99
nation_type::barb_type
enum barbarian_type barb_type
Definition nation.h:110
nation_type::no_startpos
bool no_startpos
Definition nation.h:148
nation_type::translation_domain
char * translation_domain
Definition nation.h:100
nation_type::style
struct nation_style * style
Definition nation.h:106
nation_type::default_cities
struct nation_city_list * default_cities
Definition nation.h:131
nation_type::init_techs
int init_techs[MAX_NUM_TECH_LIST]
Definition nation.h:122
nation_type::civilwar_nations
struct nation_list * civilwar_nations
Definition nation.h:135
nation_type::is_playable
bool is_playable
Definition nation.h:109
nation_type::player
struct player * player
Definition nation.h:118
player
Definition player.h:249
rgbcolor
Definition rgbcolor.h:33
server
Definition servers.h:29
setting
Definition settings.c:92
terrain
Definition terrain.h:75
trait_limits
Definition traits.h:43
unit_type
Definition unittype.h:507
unit
Definition unit.h:140
terrain.h