Freeciv-3.3
Loading...
Searching...
No Matches
fc_types.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 2004 - The Freeciv Project
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
14#ifndef FC__FC_TYPES_H
15#define FC__FC_TYPES_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21/* utility */
22#include "bitvector.h"
23#include "shared.h"
24
25/* This file serves to reduce the cross-inclusion of header files which
26 * occurs when a type which is defined in one file is needed for a function
27 * definition in another file.
28 *
29 * Nothing in this file should require anything else from the common/
30 * directory! */
31
32#define MAX_NUM_PLAYER_SLOTS 512 /* Used in the network protocol. */
33 /* Must be divisable by 32 or iterations
34 * in savegame2.c needs to be changed */
35#define MAX_NUM_BARBARIANS 12 /* 3, but slots reserved for future use. */
36#define MAX_NUM_PLAYERS MAX_NUM_PLAYER_SLOTS - MAX_NUM_BARBARIANS
37/* Used in the network protocol. */
38#define MAX_NUM_CONNECTIONS (2 * (MAX_NUM_PLAYER_SLOTS))
39/* e.g. unit_types. Used in the network protocol. */
40#define MAX_NUM_ITEMS 200
41#define MAX_NUM_ADVANCES 400 /* Used in the network protocol. */
42#define MAX_NUM_UNITS 300 /* Used in the network protocol. */
43#define MAX_NUM_BUILDINGS 200 /* Used in the network protocol. */
44#define MAX_NUM_TECH_LIST 10 /* Used in the network protocol. */
45#define MAX_NUM_UNIT_LIST 10 /* Used in the network protocol. */
46#define MAX_NUM_BUILDING_LIST 10 /* Used in the network protocol. */
47#define MAX_LEN_VET_SHORT_NAME 8
48/* Used in the network protocol. See diplomat_success_vs_defender() */
49#define MAX_VET_LEVELS 20
50#define MAX_EXTRA_TYPES 250 /* Used in the network protocol. */
51#define MAX_GOODS_TYPES 25
52#define MAX_DISASTER_TYPES 10
53#define MAX_ACHIEVEMENT_TYPES 40
54#define MAX_NUM_ACTION_AUTO_PERFORMERS 11
55#define MAX_NUM_MULTIPLIERS 50
56#define MAX_NUM_LEADERS MAX_NUM_ITEMS /* Used in the network protocol. */
57#define MAX_NUM_NATION_SETS 32 /* Used in the network protocol.
58 * RULESET_NATION_SETS packet may become too big
59 * if increased */
60#define MAX_NUM_NATION_GROUPS 128 /* Used in the network protocol. */
61/* Used in the network protocol -- nation count is a UINT16 */
62#define MAX_NUM_NATIONS MAX_UINT16
63#define MAX_NUM_STARTPOS_NATIONS 1024 /* Used in the network protocol. */
64#define MAX_CALENDAR_FRAGMENTS 52 /* Used in the network protocol. */
65#define MAX_NUM_TECH_CLASSES 16 /* Used in the network protocol. */
67/* Changing these will probably break network compatibility. */
68#define MAX_LEN_NAME 48
69#define MAX_LEN_CITYNAME 120
70#define MAX_LEN_MAP_LABEL 64
71#define MAX_LEN_DEMOGRAPHY 16
72#define MAX_LEN_ALLOW_TAKE 16
73#define MAX_LEN_GAME_IDENTIFIER 33
74#define MAX_GRANARY_INIS 24
75#define MAX_LEN_STARTUNIT (20+1)
76#define MAX_LEN_ENUM 64
78/* Line breaks after this number of characters; be careful and use only 70 */
79#define LINE_BREAK 70
80
81/* Changing the max radius requires updating network capabilities and results
82 * in incompatible savefiles. */
83#define CITY_MAP_MIN_RADIUS 0
84#define CITY_MAP_DEFAULT_RADIUS 2
85#define CITY_MAP_MAX_RADIUS 5
87/* Below size of city tiles array is big enough for radius 5 city */
89#define MAX_CITY_TILES (91)
90
91#define MAX_CITY_NATIONALITIES (MIN(MAX_NUM_PLAYER_SLOTS, MAX_CITY_SIZE))
93/* symbol to flag missing numbers for better debugging */
94#define IDENTITY_NUMBER_ZERO (0)
95
98/* A bitvector for all player slots. Used in the network protocol. */
101/* Changing this breaks network compatibility. */
104};
105
106/* Counters related definitions. See common/counters.h */
107/* Used in the network protocol. */
108#define MAX_COUNTERS 20
109
110/* Counters related types. See common/counters.h */
111/* Used in the network protocol. */
112#define SPECENUM_NAME counter_behaviour
113#define SPECENUM_VALUE1 CB_CITY_OWNED_TURNS
114#define SPECENUM_VALUE1NAME "Owned"
115#define SPECENUM_VALUE2 CB_CITY_CELEBRATION_TURNS
116#define SPECENUM_VALUE2NAME "Celebration"
117#define SPECENUM_VALUE3 CB_CITY_DISORDER_TURNS
118#define SPECENUM_VALUE3NAME "Disorder"
119#define SPECENUM_VALUE4 CB_USER
120#define SPECENUM_VALUE4NAME "User"
121
123
124#define SPECENUM_COUNT COUNTER_BEHAVIOUR_LAST
125#include "specenum_gen.h"
127/* Used in the network protocol. */
129
130/* Changing this enum will break savegame and network compatibility. */
131/* When changing this, also update the list of valid requirement "Activity"
132 * values in doc/README.effects, the list of invalid requirement
133 * "Activity" values in activity_is_valid_in_requirement(),
134 * and default actions list in activity_default_action() */
135#define SPECENUM_NAME unit_activity
136/* Not performing any activity right now */
137#define SPECENUM_VALUE0 ACTIVITY_IDLE
138#define SPECENUM_VALUE0NAME N_("Idle")
139/* Action with the result ACTRES_CULTIVATE */
140#define SPECENUM_VALUE1 ACTIVITY_CULTIVATE
141#define SPECENUM_VALUE1NAME N_("Cultivate")
142/* Action with the result ACTRES_MINE */
143#define SPECENUM_VALUE2 ACTIVITY_MINE
144#define SPECENUM_VALUE2NAME N_("?act:Mine")
145/* Action with the result ACTRES_IRRIGATE */
146#define SPECENUM_VALUE3 ACTIVITY_IRRIGATE
147#define SPECENUM_VALUE3NAME N_("Irrigate")
148/* Has completed ACTIVITY_FORTIFYING */
149#define SPECENUM_VALUE4 ACTIVITY_FORTIFIED
150#define SPECENUM_VALUE4NAME N_("Fortified")
151/* Server side client state (UI) */
152#define SPECENUM_VALUE5 ACTIVITY_SENTRY
153#define SPECENUM_VALUE5NAME "Sentry"
154/* Action with the result ACTRES_PILLAGE */
155#define SPECENUM_VALUE6 ACTIVITY_PILLAGE
156#define SPECENUM_VALUE6NAME N_("Pillage")
157/* AI compatibility. Is not orders' goto. */
158#define SPECENUM_VALUE7 ACTIVITY_GOTO
159#define SPECENUM_VALUE7NAME "Goto"
160/* Server side agent */
161#define SPECENUM_VALUE8 ACTIVITY_EXPLORE
162#define SPECENUM_VALUE8NAME "Explore"
163/* Action with the result ACTRES_TRANSFORM_TERRAIN */
164#define SPECENUM_VALUE9 ACTIVITY_TRANSFORM
165#define SPECENUM_VALUE9NAME N_("Transform")
166/* Action with the result ACTRES_FORTIFY */
167#define SPECENUM_VALUE10 ACTIVITY_FORTIFYING
168#define SPECENUM_VALUE10NAME N_("Fortifying")
169/* Action with the result ACTRES_CLEAN */
170#define SPECENUM_VALUE11 ACTIVITY_CLEAN
171#define SPECENUM_VALUE11NAME N_("Clean")
172/* Action with the result ACTRES_BASE */
173#define SPECENUM_VALUE12 ACTIVITY_BASE
174#define SPECENUM_VALUE12NAME N_("Base")
175/* Action with the result ACTRES_ROAD */
176#define SPECENUM_VALUE13 ACTIVITY_GEN_ROAD
177#define SPECENUM_VALUE13NAME N_("Road")
178/* Action with the result ACTRES_CONVERT */
179#define SPECENUM_VALUE14 ACTIVITY_CONVERT
180#define SPECENUM_VALUE14NAME N_("Convert")
181/* Action with the result ACTRES_PLANT */
182#define SPECENUM_VALUE15 ACTIVITY_PLANT
183#define SPECENUM_VALUE15NAME N_("Plant")
184/* Number of activities */
185#define SPECENUM_COUNT ACTIVITY_LAST
186#include "specenum_gen.h"
187
188/* Values used in the network protocol. */
189/* Update also properties table on actres.c when touching this. */
190#define SPECENUM_NAME action_result
191#define SPECENUM_VALUE0 ACTRES_ESTABLISH_EMBASSY
192#define SPECENUM_VALUE0NAME "Unit Establish Embassy"
193#define SPECENUM_VALUE1 ACTRES_SPY_INVESTIGATE_CITY
194#define SPECENUM_VALUE1NAME "Unit Investigate City"
195#define SPECENUM_VALUE2 ACTRES_SPY_POISON
196#define SPECENUM_VALUE2NAME "Unit Poison City"
197#define SPECENUM_VALUE3 ACTRES_SPY_STEAL_GOLD
198#define SPECENUM_VALUE3NAME "Unit Steal Gold"
199#define SPECENUM_VALUE4 ACTRES_SPY_SABOTAGE_CITY
200#define SPECENUM_VALUE4NAME "Unit Sabotage City"
201#define SPECENUM_VALUE5 ACTRES_SPY_TARGETED_SABOTAGE_CITY
202#define SPECENUM_VALUE5NAME "Unit Targeted Sabotage City"
203#define SPECENUM_VALUE6 ACTRES_SPY_SABOTAGE_CITY_PRODUCTION
204#define SPECENUM_VALUE6NAME "Unit Sabotage City Production"
205#define SPECENUM_VALUE7 ACTRES_SPY_STEAL_TECH
206#define SPECENUM_VALUE7NAME "Unit Steal Tech"
207#define SPECENUM_VALUE8 ACTRES_SPY_TARGETED_STEAL_TECH
208#define SPECENUM_VALUE8NAME "Unit Targeted Steal Tech"
209#define SPECENUM_VALUE9 ACTRES_SPY_INCITE_CITY
210#define SPECENUM_VALUE9NAME "Unit Incite City"
211#define SPECENUM_VALUE10 ACTRES_TRADE_ROUTE
212#define SPECENUM_VALUE10NAME "Unit Establish Trade Route"
213#define SPECENUM_VALUE11 ACTRES_MARKETPLACE
214#define SPECENUM_VALUE11NAME "Unit Enter Marketplace"
215#define SPECENUM_VALUE12 ACTRES_HELP_WONDER
216#define SPECENUM_VALUE12NAME "Unit Help Wonder"
217#define SPECENUM_VALUE13 ACTRES_SPY_BRIBE_UNIT
218#define SPECENUM_VALUE13NAME "Unit Bribe Unit"
219#define SPECENUM_VALUE14 ACTRES_SPY_SABOTAGE_UNIT
220#define SPECENUM_VALUE14NAME "Unit Sabotage Unit"
221#define SPECENUM_VALUE15 ACTRES_CAPTURE_UNITS
222#define SPECENUM_VALUE15NAME "Unit Capture Units"
223#define SPECENUM_VALUE16 ACTRES_FOUND_CITY
224#define SPECENUM_VALUE16NAME "Unit Found City"
225#define SPECENUM_VALUE17 ACTRES_JOIN_CITY
226#define SPECENUM_VALUE17NAME "Unit Join City"
227#define SPECENUM_VALUE18 ACTRES_STEAL_MAPS
228#define SPECENUM_VALUE18NAME "Unit Steal Maps"
229#define SPECENUM_VALUE19 ACTRES_BOMBARD
230#define SPECENUM_VALUE19NAME "Unit Bombard"
231#define SPECENUM_VALUE20 ACTRES_SPY_NUKE
232#define SPECENUM_VALUE20NAME "Unit Suitcase Nuke"
233#define SPECENUM_VALUE21 ACTRES_NUKE
234#define SPECENUM_VALUE21NAME "Unit Nuke"
235#define SPECENUM_VALUE22 ACTRES_NUKE_UNITS
236#define SPECENUM_VALUE22NAME "Unit Nuke Units"
237#define SPECENUM_VALUE23 ACTRES_DESTROY_CITY
238#define SPECENUM_VALUE23NAME "Unit Destroy City"
239#define SPECENUM_VALUE24 ACTRES_EXPEL_UNIT
240#define SPECENUM_VALUE24NAME "Unit Expel Unit"
241#define SPECENUM_VALUE25 ACTRES_DISBAND_UNIT_RECOVER
242#define SPECENUM_VALUE25NAME "Unit Disband Recover"
243#define SPECENUM_VALUE26 ACTRES_DISBAND_UNIT
244#define SPECENUM_VALUE26NAME "Unit Disband"
245#define SPECENUM_VALUE27 ACTRES_HOME_CITY
246#define SPECENUM_VALUE27NAME "Unit Home City"
247#define SPECENUM_VALUE28 ACTRES_UPGRADE_UNIT
248#define SPECENUM_VALUE28NAME "Unit Upgrade"
249#define SPECENUM_VALUE29 ACTRES_PARADROP
250#define SPECENUM_VALUE29NAME "Unit Paradrop"
251#define SPECENUM_VALUE30 ACTRES_AIRLIFT
252#define SPECENUM_VALUE30NAME "Unit Airlift"
253#define SPECENUM_VALUE31 ACTRES_ATTACK
254#define SPECENUM_VALUE31NAME "Unit Attack"
255#define SPECENUM_VALUE32 ACTRES_STRIKE_BUILDING
256#define SPECENUM_VALUE32NAME "Unit Surgical Strike Building"
257#define SPECENUM_VALUE33 ACTRES_STRIKE_PRODUCTION
258#define SPECENUM_VALUE33NAME "Unit Surgical Strike Production"
259#define SPECENUM_VALUE34 ACTRES_CONQUER_CITY
260#define SPECENUM_VALUE34NAME "Unit Conquer City"
261#define SPECENUM_VALUE35 ACTRES_HEAL_UNIT
262#define SPECENUM_VALUE35NAME "Unit Heal Unit"
263#define SPECENUM_VALUE36 ACTRES_TRANSFORM_TERRAIN
264#define SPECENUM_VALUE36NAME "Unit Transform Terrain"
265#define SPECENUM_VALUE37 ACTRES_CULTIVATE
266#define SPECENUM_VALUE37NAME "Unit Cultivate"
267#define SPECENUM_VALUE38 ACTRES_PLANT
268#define SPECENUM_VALUE38NAME "Unit Plant"
269#define SPECENUM_VALUE39 ACTRES_PILLAGE
270#define SPECENUM_VALUE39NAME "Unit Pillage"
271#define SPECENUM_VALUE40 ACTRES_FORTIFY
272#define SPECENUM_VALUE40NAME "Unit Fortify"
273#define SPECENUM_VALUE41 ACTRES_ROAD
274#define SPECENUM_VALUE41NAME "Unit Build Road"
275#define SPECENUM_VALUE42 ACTRES_CONVERT
276#define SPECENUM_VALUE42NAME "Unit Convert"
277#define SPECENUM_VALUE43 ACTRES_BASE
278#define SPECENUM_VALUE43NAME "Unit Build Base"
279#define SPECENUM_VALUE44 ACTRES_MINE
280#define SPECENUM_VALUE44NAME "Unit Build Mine"
281#define SPECENUM_VALUE45 ACTRES_IRRIGATE
282#define SPECENUM_VALUE45NAME "Unit Build Irrigation"
283#define SPECENUM_VALUE46 ACTRES_COLLECT_RANSOM
284#define SPECENUM_VALUE46NAME "Collect Ransom"
285/* TODO: Rearrange action results to get rid of this */
286#define SPECENUM_VALUE47 ACTRES_UNUSED_1
287#define SPECENUM_VALUE47NAME "Unused1"
288#define SPECENUM_VALUE48 ACTRES_TRANSPORT_DEBOARD
289#define SPECENUM_VALUE48NAME "Unit Transport Deboard"
290#define SPECENUM_VALUE49 ACTRES_TRANSPORT_UNLOAD
291#define SPECENUM_VALUE49NAME "Unit Transport Unload"
292#define SPECENUM_VALUE50 ACTRES_TRANSPORT_DISEMBARK
293#define SPECENUM_VALUE50NAME "Unit Transport Disembark"
294#define SPECENUM_VALUE51 ACTRES_TRANSPORT_BOARD
295#define SPECENUM_VALUE51NAME "Unit Transport Board"
296#define SPECENUM_VALUE52 ACTRES_TRANSPORT_EMBARK
297#define SPECENUM_VALUE52NAME "Unit Transport Embark"
298#define SPECENUM_VALUE53 ACTRES_SPY_SPREAD_PLAGUE
299#define SPECENUM_VALUE53NAME "Unit Spread Plague"
300#define SPECENUM_VALUE54 ACTRES_SPY_ATTACK
301#define SPECENUM_VALUE54NAME "Unit Spy Attack"
302#define SPECENUM_VALUE55 ACTRES_CONQUER_EXTRAS
303#define SPECENUM_VALUE55NAME "Unit Conquer Extras"
304#define SPECENUM_VALUE56 ACTRES_HUT_ENTER
305#define SPECENUM_VALUE56NAME "Unit Enter Hut"
306#define SPECENUM_VALUE57 ACTRES_HUT_FRIGHTEN
307#define SPECENUM_VALUE57NAME "Unit Frighten Hut"
308#define SPECENUM_VALUE58 ACTRES_UNIT_MOVE
309#define SPECENUM_VALUE58NAME "Unit Move"
310#define SPECENUM_VALUE59 ACTRES_PARADROP_CONQUER
311#define SPECENUM_VALUE59NAME "Unit Paradrop Conquer"
312#define SPECENUM_VALUE60 ACTRES_HOMELESS
313#define SPECENUM_VALUE60NAME "Unit Make Homeless"
314#define SPECENUM_VALUE61 ACTRES_WIPE_UNITS
315#define SPECENUM_VALUE61NAME "Wipe Units"
316#define SPECENUM_VALUE62 ACTRES_SPY_ESCAPE
317#define SPECENUM_VALUE62NAME "Unit Spy Escape"
318#define SPECENUM_VALUE63 ACTRES_TRANSPORT_LOAD
319#define SPECENUM_VALUE63NAME "Unit Transport Load"
320#define SPECENUM_VALUE64 ACTRES_CLEAN
321#define SPECENUM_VALUE64NAME "Clean"
322/* TODO: Move close to "Move" */
323#define SPECENUM_VALUE65 ACTRES_TELEPORT
324#define SPECENUM_VALUE65NAME "Teleport"
325#define SPECENUM_VALUE66 ACTRES_TELEPORT_CONQUER
326#define SPECENUM_VALUE66NAME "Teleport Conquer"
327/* Hardcoded action that's just controlled by enablers */
328#define SPECENUM_VALUE67 ACTRES_ENABLER_CHECK
329/* All consequences are handled as (ruleset) action data. */
330#define SPECENUM_COUNT ACTRES_LAST
332
333#define ACTRES_NONE ACTRES_LAST
334
335/* Used in the network protocol. */
336#define SPECENUM_NAME action_sub_result
337/* Will enter each enterable hut at the target tile */
338#define SPECENUM_VALUE0 ACT_SUB_RES_HUT_ENTER
339#define SPECENUM_VALUE0NAME "Unit Enter Hut"
340/* Will frighten each frightenable hut at the target tile */
341#define SPECENUM_VALUE1 ACT_SUB_RES_HUT_FRIGHTEN
342#define SPECENUM_VALUE1NAME "Unit Frighten Hut"
343/* The actor may load into a transport if it can't survive on its own at the
344 * target tile. */
345#define SPECENUM_VALUE2 ACT_SUB_RES_MAY_EMBARK
346#define SPECENUM_VALUE2NAME "Unit May Embark"
347/* Target units won't be killed by this action. */
348#define SPECENUM_VALUE3 ACT_SUB_RES_NON_LETHAL
349#define SPECENUM_VALUE3NAME "Non Lethal To Target Unit"
350#define SPECENUM_BITVECTOR bv_action_sub_results
351#define SPECENUM_COUNT ACT_SUB_RES_COUNT
352#include "specenum_gen.h"
354/* Happens at once, not during turn change. */
355#define ACT_TIME_INSTANTANEOUS (-1)
356
357/* Symbol used to flag no (sub) target of an action or for an activity.
358 * IDENTITY_NUMBER_ZERO can't be used since 0 is a valid identity for
359 * certain (sub) targets. */
360#define NO_TARGET (-1)
361
362/* How "large" a Casus Belli is. */
363#define SPECENUM_NAME casus_belli_range
364/* No one gets a Casus Belli. */
365#define SPECENUM_VALUE0 CBR_NONE
366#define SPECENUM_VALUE0NAME N_("No Casus Belli")
367/* Only the victim player gets a Casus Belli. */
368#define SPECENUM_VALUE1 CBR_VICTIM_ONLY
369#define SPECENUM_VALUE1NAME N_("Victim Casus Belli")
370/* Every other player, including the victim, gets a Casus Belli. */
371#define SPECENUM_VALUE2 CBR_INTERNATIONAL_OUTRAGE
372#define SPECENUM_VALUE2NAME N_("International Outrage")
373#define SPECENUM_COUNT CBR_LAST
375
378typedef signed short Continent_id;
379typedef int Terrain_type_id;
382typedef int Impr_type_id;
383typedef int Tech_type_id;
386typedef int Nation_type_id;
388typedef int Unit_type_id;
389typedef int Base_type_id;
390typedef int Road_type_id;
393typedef int Goods_type_id;
394typedef unsigned char citizens;
395typedef int action_id;
396
397struct advance;
398struct city;
399struct connection;
400struct government;
401struct impr_type;
402struct nation_type;
403struct output_type;
404struct player;
405struct specialist;
406struct terrain;
407struct tile;
408struct unit;
409struct achievement;
410struct action;
411
413/* Changing these will break network compatibility. */
414#define SP_MAX 20
416#define MAX_NUM_RULESETS 63 /* Used in the network protocol. */
417#define MAX_RULESET_NAME_LENGTH 64 /* Used in the network protocol. */
418#define RULESET_SUFFIX ".serv"
420/* Unit Class List, also 32-bit vector? */
421#define UCL_LAST 32 /* Used in the network protocol. */
422typedef int Unit_Class_id;
423
424/* The direction8 gives the 8 possible directions. These may be used in
425 * a number of ways, for instance as an index into the DIR_DX/DIR_DY
426 * arrays. Not all directions may be valid; see is_valid_dir and
427 * is_cardinal_dir. */
428
429/* The DIR8/direction8 naming system is used to avoid conflict with
430 * DIR4/direction4 in client/tilespec.h
431 *
432 * Changing the order of the directions will break network compatibility.
433 *
434 * Some code assumes that the first 4 directions are the reverses of the
435 * last 4 (in no particular order). See client/goto.c and
436 * map.c:opposite_direction(). */
437
438/* Used in the network protocol. */
439#define SPECENUM_NAME direction8
440#define SPECENUM_VALUE0 DIR8_NORTHWEST
441#define SPECENUM_VALUE0NAME "Northwest"
442#define SPECENUM_VALUE1 DIR8_NORTH
443#define SPECENUM_VALUE1NAME "North"
444#define SPECENUM_VALUE2 DIR8_NORTHEAST
445#define SPECENUM_VALUE2NAME "Northeast"
446#define SPECENUM_VALUE3 DIR8_WEST
447#define SPECENUM_VALUE3NAME "West"
448#define SPECENUM_VALUE4 DIR8_EAST
449#define SPECENUM_VALUE4NAME "East"
450#define SPECENUM_VALUE5 DIR8_SOUTHWEST
451#define SPECENUM_VALUE5NAME "Southwest"
452#define SPECENUM_VALUE6 DIR8_SOUTH
453#define SPECENUM_VALUE6NAME "South"
454#define SPECENUM_VALUE7 DIR8_SOUTHEAST
455#define SPECENUM_VALUE7NAME "Southeast"
456#define SPECENUM_INVALID ((enum direction8) (DIR8_SOUTHEAST + 1))
457#include "specenum_gen.h"
458
459/* No direction. Understood as the origin tile that a direction would have
460 * been relative to. */
461#define DIR8_ORIGIN direction8_invalid()
462
463/* Used in the network protocol. */
464#define SPECENUM_NAME free_tech_method
465#define SPECENUM_VALUE0 FTM_GOAL
466#define SPECENUM_VALUE0NAME "Goal"
467#define SPECENUM_VALUE1 FTM_RANDOM
468#define SPECENUM_VALUE1NAME "Random"
469#define SPECENUM_VALUE2 FTM_CHEAPEST
470#define SPECENUM_VALUE2NAME "Cheapest"
471#include "specenum_gen.h"
472
473/* Some code requires compile time value for number of directions, and
474 * cannot use specenum function call direction8_max(). */
475#define DIR8_MAGIC_MAX 8
476
477/* The victim gets a casus belli if EFT_CASUS_BELLI_* is equal to or above
478 * CASUS_BELLI_VICTIM. To change this value you must update the
479 * documentation of each Casus_Belli_* effect in
480 * doc/README.effects, update existing rulesets and add ruleset
481 * compatibility code to server/rscompat.c. */
482#define CASUS_BELLI_VICTIM 1
483/* International outrage: Everyone gets a casus belli if EFT_CASUS_BELLI_*
484 * is equal to or above CASUS_BELLI_OUTRAGE. To change this value you must
485 * update the documentation of each Casus_Belli_* effect in
486 * doc/README.effects, update existing rulesets and add ruleset
487 * compatibility code to server/rscompat.c. */
488#define CASUS_BELLI_OUTRAGE 1000
489
490/* Really in ai.c */
491const char *ai_level_name_update_cb(const char *old);
492
493/* Used in the network protocol. */
494/* server/commands.c must match these */
495#define SPECENUM_NAME ai_level
496#define SPECENUM_VALUE0 AI_LEVEL_RESTRICTED
497#define SPECENUM_VALUE0NAME N_("Restricted")
498#define SPECENUM_VALUE1 AI_LEVEL_NOVICE
499#define SPECENUM_VALUE1NAME N_("Novice")
500#define SPECENUM_VALUE2 AI_LEVEL_EASY
501#define SPECENUM_VALUE2NAME N_("Easy")
502#define SPECENUM_VALUE3 AI_LEVEL_NORMAL
503#define SPECENUM_VALUE3NAME N_("Normal")
504#define SPECENUM_VALUE4 AI_LEVEL_HARD
505#define SPECENUM_VALUE4NAME N_("Hard")
506#define SPECENUM_VALUE5 AI_LEVEL_CHEATING
507#define SPECENUM_VALUE5NAME N_("Cheating")
508
509#ifdef FREECIV_DEBUG
510#define SPECENUM_VALUE6 AI_LEVEL_EXPERIMENTAL
511#define SPECENUM_VALUE6NAME N_("Experimental")
512/* Away must be the last, so ailevel_name() can terminate list
513 * of level names before it. */
514#define SPECENUM_VALUE7 AI_LEVEL_AWAY
515#define SPECENUM_VALUE7NAME N_("Away")
516#else /* FREECIV_DEBUG */
517#define SPECENUM_VALUE6 AI_LEVEL_AWAY
518#define SPECENUM_VALUE6NAME N_("Away")
519#endif /* FREECIV_DEBUG */
521#define SPECENUM_COUNT AI_LEVEL_COUNT
522#define SPECENUM_NAME_UPDATER
523#include "specenum_gen.h"
524
525/* pplayer->ai.barbarian_type and nations use this enum. */
526#define SPECENUM_NAME barbarian_type
527#define SPECENUM_VALUE0 NOT_A_BARBARIAN
528#define SPECENUM_VALUE0NAME "None"
529#define SPECENUM_VALUE1 LAND_BARBARIAN
530#define SPECENUM_VALUE1NAME "Land"
531#define SPECENUM_VALUE2 SEA_BARBARIAN
532#define SPECENUM_VALUE2NAME "Sea"
533#define SPECENUM_VALUE3 ANIMAL_BARBARIAN
534#define SPECENUM_VALUE3NAME "Animal"
535#define SPECENUM_VALUE4 LAND_AND_SEA_BARBARIAN
536#define SPECENUM_VALUE4NAME "LandAndSea"
537#include "specenum_gen.h"
538
539/*
540 * CityTile requirement types.
541 *
542 * Used in the network protocol
543 */
544#define SPECENUM_NAME citytile_type
545#define SPECENUM_VALUE0 CITYT_CENTER
546#define SPECENUM_VALUE0NAME "Center"
547#define SPECENUM_VALUE1 CITYT_CLAIMED
548#define SPECENUM_VALUE1NAME "Claimed"
549#define SPECENUM_VALUE2 CITYT_EXTRAS_OWNED
550#define SPECENUM_VALUE2NAME "Extras Owned"
551#define SPECENUM_VALUE3 CITYT_WORKED
552#define SPECENUM_VALUE3NAME "Worked"
553#define SPECENUM_VALUE4 CITYT_SAME_CONTINENT
554#define SPECENUM_VALUE4NAME "Same Continent"
555#define SPECENUM_VALUE5 CITYT_BORDERING_TCLASS_REGION
556#define SPECENUM_VALUE5NAME "Bordering TClass Region"
557#define SPECENUM_COUNT CITYT_LAST
558#include "specenum_gen.h"
559
560/*
561 * CityStatus requirement types.
562 *
563 * Used in the network protocol
564 */
565#define SPECENUM_NAME citystatus_type
566#define SPECENUM_VALUE0 CITYS_OWNED_BY_ORIGINAL
567#define SPECENUM_VALUE0NAME "OwnedByOriginal"
568#define SPECENUM_VALUE1 CITYS_STARVED
569#define SPECENUM_VALUE1NAME "Starved"
570#define SPECENUM_VALUE2 CITYS_DISORDER
571#define SPECENUM_VALUE2NAME "Disorder"
572#define SPECENUM_VALUE3 CITYS_CELEBRATION
573#define SPECENUM_VALUE3NAME "Celebration"
574#define SPECENUM_VALUE4 CITYS_TRANSFERRED
575#define SPECENUM_VALUE4NAME "Transferred"
576#define SPECENUM_COUNT CITYS_LAST
577#include "specenum_gen.h"
578
579/*
580 * PlayerState requirement types.
581 *
582 * Used in the network protocol
583 */
584#define SPECENUM_NAME plrstate_type
585#define SPECENUM_VALUE0 PLRS_BARBARIAN
586#define SPECENUM_VALUE0NAME "Barbarian"
587#define SPECENUM_VALUE1 PLRS_HAS_CAPITAL
588#define SPECENUM_VALUE1NAME "HasCapital"
589#define SPECENUM_COUNT PLRS_LAST
590#include "specenum_gen.h"
591
592/*
593 * UnitState requirement property types.
594 *
595 * Used in the network protocol.
596 */
597#define SPECENUM_NAME ustate_prop
598#define SPECENUM_VALUE0 USP_TRANSPORTED
599#define SPECENUM_VALUE0NAME "Transported"
600#define SPECENUM_VALUE1 USP_LIVABLE_TILE
601#define SPECENUM_VALUE1NAME "OnLivableTile"
602#define SPECENUM_VALUE2 USP_TRANSPORTING
603#define SPECENUM_VALUE2NAME "Transporting"
604#define SPECENUM_VALUE3 USP_HAS_HOME_CITY
605#define SPECENUM_VALUE3NAME "HasHomeCity"
606#define SPECENUM_VALUE4 USP_NATIVE_TILE
607#define SPECENUM_VALUE4NAME "OnNativeTile"
608#define SPECENUM_VALUE5 USP_NATIVE_EXTRA
609#define SPECENUM_VALUE5NAME "InNativeExtra"
610#define SPECENUM_VALUE6 USP_MOVED_THIS_TURN
611#define SPECENUM_VALUE6NAME "MovedThisTurn"
612#define SPECENUM_COUNT USP_COUNT
613#include "specenum_gen.h"
614
615/* Changing these values will break map_init_topology().
616 * Changing the names will break file format compatibility. */
617#define SPECENUM_NAME topo_flag
618#define SPECENUM_BITWISE
619#define SPECENUM_VALUE0 TF_ISO
620#define SPECENUM_VALUE0NAME N_("ISO")
621#define SPECENUM_VALUE1 TF_HEX
622#define SPECENUM_VALUE1NAME N_("Hex")
623#define SPECENUM_VALUE2 TF_OLD_WRAPX
624#define SPECENUM_VALUE2NAME N_("WrapX")
625#define SPECENUM_VALUE3 TF_OLD_WRAPY
626#define SPECENUM_VALUE3NAME N_("WrapY")
627#define TOPO_FLAG_BITS 4
628#include "specenum_gen.h"
629
630#define SPECENUM_NAME wrap_flag
631#define SPECENUM_BITWISE
632#define SPECENUM_VALUE0 WRAP_X
633#define SPECENUM_VALUE0NAME N_("WrapX")
634#define SPECENUM_VALUE1 WRAP_Y
635#define SPECENUM_VALUE1NAME N_("WrapY")
636#define WRAP_FLAG_BITS 2
637#include "specenum_gen.h"
638
639/* Used in the network protocol. */
640#define SPECENUM_NAME impr_genus_id
641#define SPECENUM_VALUE0 IG_GREAT_WONDER
642#define SPECENUM_VALUE0NAME "GreatWonder"
643#define SPECENUM_VALUE1 IG_SMALL_WONDER
644#define SPECENUM_VALUE1NAME "SmallWonder"
645#define SPECENUM_VALUE2 IG_IMPROVEMENT
646#define SPECENUM_VALUE2NAME "Improvement"
647#define SPECENUM_VALUE3 IG_SPECIAL
648#define SPECENUM_VALUE3NAME "Special"
649#define SPECENUM_VALUE4 IG_CONVERT
650#define SPECENUM_VALUE4NAME "Convert"
651#define SPECENUM_COUNT IG_COUNT
652#include "specenum_gen.h"
653
654#include "fc_types_enums_gen.h"
656#define IF_LAST_USER_FLAG IF_USER_FLAG_8
657#define MAX_NUM_USER_BUILDING_FLAGS (IF_LAST_USER_FLAG - IF_USER_FLAG_1 + 1)
658
659#define SPECENUM_NAME plr_flag_id
660#define SPECENUM_VALUE0 PLRF_AI
661#define SPECENUM_VALUE0NAME "ai"
662#define SPECENUM_VALUE1 PLRF_SCENARIO_RESERVED
663#define SPECENUM_VALUE1NAME "ScenarioReserved"
664/* TRUE if player has ever had a city. */
665#define SPECENUM_VALUE2 PLRF_FIRST_CITY
666#define SPECENUM_VALUE2NAME "FirstCity"
667#define SPECENUM_COUNT PLRF_COUNT
668#define SPECENUM_BITVECTOR bv_plr_flags
669#include "specenum_gen.h"
671/* A server setting + its value. */
672typedef int ssetv;
673
674/* Sometimes we don't know (or don't care) if some requirements for effect
675 * are currently fulfilled or not. This enum tells lower level functions
676 * how to handle uncertain requirements.
677 */
678enum req_problem_type {
679 RPT_POSSIBLE, /* We want to know if it is possible that effect is active */
680 RPT_CERTAIN /* We want to know if it is certain that effect is active */
682
683#define REVERSED_RPT(x) \
684 (x == RPT_CERTAIN ? RPT_POSSIBLE : RPT_CERTAIN)
685
686/* Originally in requirements.h, bumped up and revised to unify with
687 * city_production and worklists. Functions remain in requirements.c
688 * Used in the network protocol. */
689typedef union {
692 struct government *govern;
693 const struct impr_type *building;
694 struct nation_type *nation;
695 struct nation_type *nationality;
696 struct nation_type *origowner;
699 struct unit_class *uclass;
700 const struct unit_type *utype;
701 struct extra_type *extra;
703 struct nation_group *nationgroup;
704 struct nation_style *style;
705 struct action *action;
706 struct goods_type *good;
708 enum ai_level ai_level;
709 enum citytile_type citytile;
710 enum citystatus_type citystatus;
711 enum plrstate_type plrstate;
712 int minsize;
713 int minculture;
714 int minforeignpct;
715 int minyear;
716 int mincalfrag;
717 Output_type_id outputtype;
718 int terrainclass; /* enum terrain_class */
719 int terrainalter; /* enum terrain_alteration */
720 int unitclassflag; /* enum unit_class_flag_id */
721 int unitflag; /* enum unit_flag_id */
722 int terrainflag; /* enum terrain_flag_id */
723 int techflag; /* enum tech_flag_id */
724 int roadflag; /* enum road_flag_id */
725 int extraflag;
726 int diplrel; /* enum diplstate_type or
727 enum diplrel_other */
728 enum ustate_prop unit_state;
729 enum unit_activity activity;
730 enum impr_genus_id impr_genus;
731 enum impr_flag_id impr_flag;
732 enum plr_flag_id plr_flag;
733 int minmoves;
734 int max_tile_units;
735 int minveteran;
736 int min_hit_points;
737 int age;
738 int form_age;
739 int min_techs;
740 int min_cities;
741 int latitude;
743 enum topo_flag topo_property;
744 enum wrap_flag wrap_property;
745 ssetv ssetval;
747
748/* The kind of universals_u (value_union_type was req_source_type).
749 * Used in the network protocol. */
750#define SPECENUM_NAME universals_n
751#define SPECENUM_VALUE0 VUT_NONE
752#define SPECENUM_VALUE0NAME "None"
753#define SPECENUM_VALUE1 VUT_ADVANCE
754#define SPECENUM_VALUE1NAME "Tech"
755#define SPECENUM_VALUE2 VUT_GOVERNMENT
756#define SPECENUM_VALUE2NAME "Gov"
757#define SPECENUM_VALUE3 VUT_IMPROVEMENT
758#define SPECENUM_VALUE3NAME "Building"
759#define SPECENUM_VALUE4 VUT_TERRAIN
760#define SPECENUM_VALUE4NAME "Terrain"
761#define SPECENUM_VALUE5 VUT_NATION
762#define SPECENUM_VALUE5NAME "Nation"
763#define SPECENUM_VALUE6 VUT_UTYPE
764#define SPECENUM_VALUE6NAME "UnitType"
765#define SPECENUM_VALUE7 VUT_UTFLAG
766#define SPECENUM_VALUE7NAME "UnitFlag"
767#define SPECENUM_VALUE8 VUT_UCLASS
768#define SPECENUM_VALUE8NAME "UnitClass"
769#define SPECENUM_VALUE9 VUT_UCFLAG
770#define SPECENUM_VALUE9NAME "UnitClassFlag"
771#define SPECENUM_VALUE10 VUT_OTYPE
772#define SPECENUM_VALUE10NAME "OutputType"
773#define SPECENUM_VALUE11 VUT_SPECIALIST
774#define SPECENUM_VALUE11NAME "Specialist"
775/* Minimum size: at city range means city size */
776#define SPECENUM_VALUE12 VUT_MINSIZE
777#define SPECENUM_VALUE12NAME "MinSize"
778/* AI level of the player */
779#define SPECENUM_VALUE13 VUT_AI_LEVEL
780#define SPECENUM_VALUE13NAME "AI"
781/* More generic terrain type currently "Land" or "Ocean" */
782#define SPECENUM_VALUE14 VUT_TERRAINCLASS
783#define SPECENUM_VALUE14NAME "TerrainClass"
784#define SPECENUM_VALUE15 VUT_MINYEAR
785#define SPECENUM_VALUE15NAME "MinYear"
786/* Terrain alterations that are possible */
787#define SPECENUM_VALUE16 VUT_TERRAINALTER
788#define SPECENUM_VALUE16NAME "TerrainAlter"
789/* Target tile is used by city. */
790#define SPECENUM_VALUE17 VUT_CITYTILE
791#define SPECENUM_VALUE17NAME "CityTile"
792#define SPECENUM_VALUE18 VUT_GOOD
793#define SPECENUM_VALUE18NAME "Good"
794#define SPECENUM_VALUE19 VUT_TERRFLAG
795#define SPECENUM_VALUE19NAME "TerrainFlag"
796#define SPECENUM_VALUE20 VUT_NATIONALITY
797#define SPECENUM_VALUE20NAME "Nationality"
798#define SPECENUM_VALUE21 VUT_ROADFLAG
799#define SPECENUM_VALUE21NAME "RoadFlag"
800#define SPECENUM_VALUE22 VUT_EXTRA
801#define SPECENUM_VALUE22NAME "Extra"
802#define SPECENUM_VALUE23 VUT_TECHFLAG
803#define SPECENUM_VALUE23NAME "TechFlag"
804#define SPECENUM_VALUE24 VUT_ACHIEVEMENT
805#define SPECENUM_VALUE24NAME "Achievement"
806#define SPECENUM_VALUE25 VUT_DIPLREL
807#define SPECENUM_VALUE25NAME "DiplRel"
808#define SPECENUM_VALUE26 VUT_MAXTILEUNITS
809#define SPECENUM_VALUE26NAME "MaxUnitsOnTile"
810#define SPECENUM_VALUE27 VUT_STYLE
811#define SPECENUM_VALUE27NAME "Style"
812#define SPECENUM_VALUE28 VUT_MINCULTURE
813#define SPECENUM_VALUE28NAME "MinCulture"
814#define SPECENUM_VALUE29 VUT_UNITSTATE
815#define SPECENUM_VALUE29NAME "UnitState"
816#define SPECENUM_VALUE30 VUT_MINMOVES
817#define SPECENUM_VALUE30NAME "MinMoveFrags"
818#define SPECENUM_VALUE31 VUT_MINVETERAN
819#define SPECENUM_VALUE31NAME "MinVeteran"
820#define SPECENUM_VALUE32 VUT_MINHP
821#define SPECENUM_VALUE32NAME "MinHitPoints"
822#define SPECENUM_VALUE33 VUT_AGE
823#define SPECENUM_VALUE33NAME "Age"
824#define SPECENUM_VALUE34 VUT_NATIONGROUP
825#define SPECENUM_VALUE34NAME "NationGroup"
826#define SPECENUM_VALUE35 VUT_TOPO
827#define SPECENUM_VALUE35NAME "Topology"
828#define SPECENUM_VALUE36 VUT_IMPR_GENUS
829#define SPECENUM_VALUE36NAME "BuildingGenus"
830#define SPECENUM_VALUE37 VUT_ACTION
831#define SPECENUM_VALUE37NAME "Action"
832#define SPECENUM_VALUE38 VUT_MINTECHS
833#define SPECENUM_VALUE38NAME "MinTechs"
834#define SPECENUM_VALUE39 VUT_EXTRAFLAG
835#define SPECENUM_VALUE39NAME "ExtraFlag"
836#define SPECENUM_VALUE40 VUT_MINCALFRAG
837#define SPECENUM_VALUE40NAME "MinCalFrag"
838#define SPECENUM_VALUE41 VUT_SERVERSETTING
839#define SPECENUM_VALUE41NAME "ServerSetting"
840#define SPECENUM_VALUE42 VUT_CITYSTATUS
841#define SPECENUM_VALUE42NAME "CityStatus"
842#define SPECENUM_VALUE43 VUT_MINFOREIGNPCT
843#define SPECENUM_VALUE43NAME "MinForeignPct"
844#define SPECENUM_VALUE44 VUT_ACTIVITY
845#define SPECENUM_VALUE44NAME "Activity"
846#define SPECENUM_VALUE45 VUT_DIPLREL_TILE
847#define SPECENUM_VALUE45NAME "DiplRelTile"
848#define SPECENUM_VALUE46 VUT_DIPLREL_TILE_O
849#define SPECENUM_VALUE46NAME "DiplRelTileOther"
850#define SPECENUM_VALUE47 VUT_DIPLREL_UNITANY
851#define SPECENUM_VALUE47NAME "DiplRelUnitAny"
852#define SPECENUM_VALUE48 VUT_DIPLREL_UNITANY_O
853#define SPECENUM_VALUE48NAME "DiplRelUnitAnyOther"
854#define SPECENUM_VALUE49 VUT_MINLATITUDE
855#define SPECENUM_VALUE49NAME "MinLatitude"
856#define SPECENUM_VALUE50 VUT_MAXLATITUDE
857#define SPECENUM_VALUE50NAME "MaxLatitude"
858#define SPECENUM_VALUE51 VUT_COUNTER
859#define SPECENUM_VALUE51NAME "Counter"
860#define SPECENUM_VALUE52 VUT_ORIGINAL_OWNER
861#define SPECENUM_VALUE52NAME "OriginalOwner"
862#define SPECENUM_VALUE53 VUT_IMPR_FLAG
863#define SPECENUM_VALUE53NAME "BuildingFlag"
864#define SPECENUM_VALUE54 VUT_WRAP
865#define SPECENUM_VALUE54NAME "Wrap"
866#define SPECENUM_VALUE55 VUT_PLAYER_FLAG
867#define SPECENUM_VALUE55NAME "PlayerFlag"
868#define SPECENUM_VALUE56 VUT_PLAYER_STATE
869#define SPECENUM_VALUE56NAME "PlayerState"
870#define SPECENUM_VALUE57 VUT_FORM_AGE
871#define SPECENUM_VALUE57NAME "FormAge"
872#define SPECENUM_VALUE58 VUT_MINCITIES
873#define SPECENUM_VALUE58NAME "MinCities"
874
875/* Keep this last. */
876#define SPECENUM_COUNT VUT_COUNT
877#include "specenum_gen.h"
879/* Used in the network protocol. */
880struct universal {
882 enum universals_n kind; /* formerly .type and .is_unit */
883};
885/* Used in the network protocol. */
889
890/* Used in the network protocol. */
891#define SPECENUM_NAME gui_type
892/* Used for options which do not belong to any gui. */
893#define SPECENUM_VALUE0 GUI_STUB
894#define SPECENUM_VALUE0NAME "stub"
895/* GUI_GTK2 remains for now for keeping client options alive until
896 * user has migrated them to gtk3-client */
897#define SPECENUM_VALUE1 GUI_GTK2
898#define SPECENUM_VALUE1NAME "gtk2"
899#define SPECENUM_VALUE2 GUI_GTK3
900#define SPECENUM_VALUE2NAME "gtk3"
901#define SPECENUM_VALUE3 GUI_GTK3_22
902#define SPECENUM_VALUE3NAME "gtk3.22"
903#define SPECENUM_VALUE4 GUI_QT
904#define SPECENUM_VALUE4NAME "qt"
905/* GUI_SDL remains for now for keeping client options alive until
906 * user has migrated them to sdl2-client */
907#define SPECENUM_VALUE5 GUI_SDL
908#define SPECENUM_VALUE5NAME "sdl"
909#define SPECENUM_VALUE6 GUI_SDL2
910#define SPECENUM_VALUE6NAME "sdl2"
911#define SPECENUM_VALUE7 GUI_SDL3
912#define SPECENUM_VALUE7NAME "sdl3"
913#define SPECENUM_VALUE8 GUI_WEB
914#define SPECENUM_VALUE8NAME "web"
915#define SPECENUM_VALUE9 GUI_GTK4
916#define SPECENUM_VALUE9NAME "gtk4"
917#define SPECENUM_VALUE10 GUI_GTK5
918#define SPECENUM_VALUE10NAME "gtk4x"
919#include "specenum_gen.h"
920
921/* Used in the network protocol. */
922#define SPECENUM_NAME airlifting_style
923#define SPECENUM_BITWISE
924/* Like classical Freeciv. One unit per turn. */
925#define SPECENUM_ZERO AIRLIFTING_CLASSICAL
926/* Allow airlifting from allied cities. */
927#define SPECENUM_VALUE0 AIRLIFTING_ALLIED_SRC
928/* Allow airlifting to allied cities. */
929#define SPECENUM_VALUE1 AIRLIFTING_ALLIED_DEST
930/* Unlimited units to airlift from the source (but always needs an Airport
931 * or equivalent). */
932#define SPECENUM_VALUE2 AIRLIFTING_UNLIMITED_SRC
933/* Unlimited units to airlift to the destination (doesn't require any
934 * Airport or equivalent). */
935#define SPECENUM_VALUE3 AIRLIFTING_UNLIMITED_DEST
936#include "specenum_gen.h"
937
938/* Used in the network protocol. */
939#define SPECENUM_NAME caravan_bonus_style
940#define SPECENUM_VALUE0 CBS_CLASSIC
941#define SPECENUM_VALUE0NAME "Classic"
942#define SPECENUM_VALUE1 CBS_LOGARITHMIC
943#define SPECENUM_VALUE1NAME "Logarithmic"
944#include "specenum_gen.h"
945
946/* Used in the network protocol. */
947#define SPECENUM_NAME persistent_ready
948#define SPECENUM_VALUE0 PERSISTENTR_DISABLED
949#define SPECENUM_VALUE0NAME "Disabled"
950#define SPECENUM_VALUE1 PERSISTENTR_CONNECTED
951#define SPECENUM_VALUE1NAME "Connected"
952#include "specenum_gen.h"
953
954#define SPECENUM_NAME reveal_map
955#define SPECENUM_BITWISE
956/* Reveal only the area around the first units at the beginning. */
957#define SPECENUM_ZERO REVEAL_MAP_NONE
958/* Reveal the (fogged) map at the beginning of the game. */
959#define SPECENUM_VALUE0 REVEAL_MAP_START
960/* Reveal (and unfog) the map for dead players. */
961#define SPECENUM_VALUE1 REVEAL_MAP_DEAD
962#include "specenum_gen.h"
963
964/* Used in the network protocol. */
965#define SPECENUM_NAME gameloss_style
966#define SPECENUM_BITWISE
967/* Like classical Freeciv. No special effects. */
968#define SPECENUM_ZERO GAMELOSS_STYLE_CLASSICAL
969/* Remaining cities are taken by barbarians. */
970#define SPECENUM_VALUE0 GAMELOSS_STYLE_BARB
971#define SPECENUM_VALUE0NAME "Barbarians"
972/* Try civil war. */
973#define SPECENUM_VALUE1 GAMELOSS_STYLE_CWAR
974#define SPECENUM_VALUE1NAME "CivilWar"
975/* Do some looting */
976#define SPECENUM_VALUE2 GAMELOSS_STYLE_LOOT
977#define SPECENUM_VALUE2NAME "Loot"
978#include "specenum_gen.h"
979
980/* Used in the network protocol. */
981#define SPECENUM_NAME tech_upkeep_style
982/* No upkeep */
983#define SPECENUM_VALUE0 TECH_UPKEEP_NONE
984#define SPECENUM_VALUE0NAME "None"
985/* Normal tech upkeep */
986#define SPECENUM_VALUE1 TECH_UPKEEP_BASIC
987#define SPECENUM_VALUE1NAME "Basic"
988/* Tech upkeep multiplied by number of cities */
989#define SPECENUM_VALUE2 TECH_UPKEEP_PER_CITY
990#define SPECENUM_VALUE2NAME "Cities"
991#include "specenum_gen.h"
992
993/* Used in the network protocol. */
994#define SPECENUM_NAME trade_revenue_style
995#define SPECENUM_VALUE0 TRS_CLASSIC
996#define SPECENUM_VALUE0NAME "Classic"
997#define SPECENUM_VALUE1 TRS_SIMPLE
998#define SPECENUM_VALUE1NAME "Simple"
999#include "specenum_gen.h"
1000
1001/* Used in the network protocol. */
1002/* Numerical values used in savegames */
1003#define SPECENUM_NAME phase_mode_type
1004#define SPECENUM_VALUE0 PMT_CONCURRENT
1005#define SPECENUM_VALUE0NAME "Concurrent"
1006#define SPECENUM_VALUE1 PMT_PLAYERS_ALTERNATE
1007#define SPECENUM_VALUE1NAME "Players Alternate"
1008#define SPECENUM_VALUE2 PMT_TEAMS_ALTERNATE
1009#define SPECENUM_VALUE2NAME "Teams Alternate"
1010#include "specenum_gen.h"
1012/* Phase mode change has changed meaning of the phase numbers */
1013#define PHASE_INVALIDATED -1
1014/* Phase was never known */
1015#define PHASE_UNKNOWN -2
1017/* Used in the network protocol. */
1027 TDM_EVEN
1028};
1039};
1040
1041/* Server setting types. */
1042#define SPECENUM_NAME sset_type
1043#define SPECENUM_VALUE0 SST_BOOL
1044#define SPECENUM_VALUE1 SST_INT
1045#define SPECENUM_VALUE2 SST_STRING
1046#define SPECENUM_VALUE3 SST_ENUM
1047#define SPECENUM_VALUE4 SST_BITWISE
1048#define SPECENUM_COUNT SST_COUNT
1049#include "specenum_gen.h"
1051/* Mark server setting id's. */
1052typedef int server_setting_id;
1053
1054/* Used in the network protocol. */
1055#define SPECENUM_NAME extra_category
1056#define SPECENUM_VALUE0 ECAT_INFRA
1057#define SPECENUM_VALUE0NAME "Infra"
1058#define SPECENUM_VALUE1 ECAT_NATURAL
1059#define SPECENUM_VALUE1NAME "Natural"
1060#define SPECENUM_VALUE2 ECAT_NUISANCE
1061#define SPECENUM_VALUE2NAME "Nuisance"
1062#define SPECENUM_VALUE3 ECAT_BONUS
1063#define SPECENUM_VALUE3NAME "Bonus"
1064#define SPECENUM_VALUE4 ECAT_RESOURCE
1065#define SPECENUM_VALUE4NAME "Resource"
1066#define SPECENUM_COUNT ECAT_COUNT
1067#include "specenum_gen.h"
1068#define ECAT_NONE ECAT_COUNT
1069
1070/* Used in the network protocol.
1071 * When adding new cause types here, consider also adding them to the
1072 * order of pillage preference in get_preferred_pillage() */
1073#define SPECENUM_NAME extra_cause
1074#define SPECENUM_VALUE0 EC_IRRIGATION
1075#define SPECENUM_VALUE0NAME "Irrigation"
1076#define SPECENUM_VALUE1 EC_MINE
1077#define SPECENUM_VALUE1NAME "Mine"
1078#define SPECENUM_VALUE2 EC_ROAD
1079#define SPECENUM_VALUE2NAME "Road"
1080#define SPECENUM_VALUE3 EC_BASE
1081#define SPECENUM_VALUE3NAME "Base"
1082#define SPECENUM_VALUE4 EC_POLLUTION
1083#define SPECENUM_VALUE4NAME "Pollution"
1084#define SPECENUM_VALUE5 EC_FALLOUT
1085#define SPECENUM_VALUE5NAME "Fallout"
1086#define SPECENUM_VALUE6 EC_HUT
1087#define SPECENUM_VALUE6NAME "Hut"
1088#define SPECENUM_VALUE7 EC_APPEARANCE
1089#define SPECENUM_VALUE7NAME "Appear"
1090#define SPECENUM_VALUE8 EC_RESOURCE
1091#define SPECENUM_VALUE8NAME "Resource"
1092#define SPECENUM_COUNT EC_COUNT
1093#define SPECENUM_BITVECTOR bv_causes
1095#define EC_NONE EC_COUNT
1096#define EC_SPECIAL (EC_NONE + 1)
1097#define EC_DEFENSIVE (EC_NONE + 2)
1098#define EC_NATURAL_DEFENSIVE (EC_NONE + 3)
1099#define EC_NOT_AGGRESSIVE (EC_NONE + 4)
1100#define EC_LAST (EC_NONE + 5)
1102/* struct extra_type reserve 16 bits (0-15) for these. */
1104
1105/* Used in the network protocol. */
1106#define SPECENUM_NAME extra_rmcause
1107#define SPECENUM_VALUE0 ERM_PILLAGE
1108#define SPECENUM_VALUE0NAME "Pillage"
1109#define SPECENUM_VALUE1 ERM_CLEAN
1110#define SPECENUM_VALUE1NAME "Clean"
1111#define SPECENUM_VALUE2 ERM_DISAPPEARANCE
1112#define SPECENUM_VALUE2NAME "Disappear"
1113#define SPECENUM_VALUE3 ERM_ENTER
1114#define SPECENUM_VALUE3NAME "Enter"
1115#define SPECENUM_COUNT ERM_COUNT
1116#define SPECENUM_BITVECTOR bv_rmcauses
1117#include "specenum_gen.h"
1118#define ERM_NONE ERM_COUNT
1119
1120/* struct extra_type reserve 8 bits (0-7) for these. */
1122
1123#define SPECENUM_NAME extra_unit_seen_type
1124#define SPECENUM_VALUE0 EUS_NORMAL
1125#define SPECENUM_VALUE0NAME "Normal"
1126#define SPECENUM_VALUE1 EUS_HIDDEN
1127#define SPECENUM_VALUE1NAME "Hidden"
1128#include "specenum_gen.h"
1129
1130/* Used in the network protocol. */
1131#define SPECENUM_NAME achievement_type
1132#define SPECENUM_VALUE0 ACHIEVEMENT_SPACESHIP
1133#define SPECENUM_VALUE0NAME "Spaceship"
1134#define SPECENUM_VALUE1 ACHIEVEMENT_MAP
1135#define SPECENUM_VALUE1NAME "Map_Known"
1136#define SPECENUM_VALUE2 ACHIEVEMENT_MULTICULTURAL
1137#define SPECENUM_VALUE2NAME "Multicultural"
1138#define SPECENUM_VALUE3 ACHIEVEMENT_CULTURED_CITY
1139#define SPECENUM_VALUE3NAME "Cultured_City"
1140#define SPECENUM_VALUE4 ACHIEVEMENT_CULTURED_NATION
1141#define SPECENUM_VALUE4NAME "Cultured_Nation"
1142#define SPECENUM_VALUE5 ACHIEVEMENT_LUCKY
1143#define SPECENUM_VALUE5NAME "Lucky"
1144#define SPECENUM_VALUE6 ACHIEVEMENT_HUTS
1145#define SPECENUM_VALUE6NAME "Huts"
1146#define SPECENUM_VALUE7 ACHIEVEMENT_METROPOLIS
1147#define SPECENUM_VALUE7NAME "Metropolis"
1148#define SPECENUM_VALUE8 ACHIEVEMENT_LITERATE
1149#define SPECENUM_VALUE8NAME "Literate"
1150#define SPECENUM_VALUE9 ACHIEVEMENT_LAND_AHOY
1151#define SPECENUM_VALUE9NAME "Land_Ahoy"
1152#define SPECENUM_VALUE10 ACHIEVEMENT_KILLER
1153#define SPECENUM_VALUE10NAME "Killer"
1154#define SPECENUM_VALUE11 ACHIEVEMENT_RICH
1155#define SPECENUM_VALUE11NAME "Rich"
1156#define SPECENUM_COUNT ACHIEVEMENT_COUNT
1157#include "specenum_gen.h"
1158
1159/* Used in the network protocol. */
1160#define SPECENUM_NAME mood_type
1161#define SPECENUM_VALUE0 MOOD_PEACEFUL
1162#define SPECENUM_VALUE0NAME "Peaceful"
1163#define SPECENUM_VALUE1 MOOD_COMBAT
1164#define SPECENUM_VALUE1NAME "Combat"
1165#define SPECENUM_COUNT MOOD_COUNT
1166#include "specenum_gen.h"
1167
1168/* Used in the network protocol. */
1169#define SPECENUM_NAME action_decision
1170/* Doesn't need the player to decide what action to take. */
1171#define SPECENUM_VALUE0 ACT_DEC_NOTHING
1172#define SPECENUM_VALUE0NAME N_("nothing")
1173/* Wants a decision because of something done to the actor. */
1174#define SPECENUM_VALUE1 ACT_DEC_PASSIVE
1175#define SPECENUM_VALUE1NAME N_("passive")
1176/* Wants a decision because of something the actor did. */
1177#define SPECENUM_VALUE2 ACT_DEC_ACTIVE
1178#define SPECENUM_VALUE2NAME N_("active")
1179#define SPECENUM_COUNT ACT_DEC_COUNT
1180#include "specenum_gen.h"
1181
1182/*
1183 * Action probability
1184 *
1185 * An action probability is the probability that an action will be
1186 * successful under the given circumstances. It is an interval that
1187 * includes the end points. An end point goes from 0% to 100%.
1188 * Alternatively it can signal a special case.
1189 *
1190 * End point values from 0 up to and including 200 should be understood as
1191 * the chance of success measured in half percentage points. In other words:
1192 * The value 3 indicates that the chance is 1.5%. The value 10 indicates
1193 * that the chance is 5%. The probability of a minimum may be rounded down
1194 * to the nearest half percentage point. The probability of a maximum may
1195 * be rounded up to the nearest half percentage point.
1196 *
1197 * Values with a higher minimum than maximum are special case values. All
1198 * special cases should be declared and documented below. An undocumented
1199 * value in this range should be considered a bug. If a special value for
1200 * internal use is needed please avoid the range from and including 0 up
1201 * to and including 255.
1202 *
1203 * [0, 0] ACTPROB_IMPOSSIBLE is another way of saying that the
1204 * probability is 0%. It isn't really a special value since it
1205 * is in range.
1206 *
1207 * [200, 200] ACTPROB_CERTAIN is another way of saying that the probability
1208 * is 100%. It isn't really a special value since it is in range.
1209 *
1210 * [253, 0] ACTPROB_NA indicates that no probability should exist.
1211 *
1212 * [254, 0] ACTPROB_NOT_IMPLEMENTED indicates that support for finding
1213 * this probability currently is missing.
1214 *
1215 * [0, 200] ACTPROB_NOT_KNOWN indicates that the player don't know enough
1216 * to find out. It is caused by the probability depending on a
1217 * rule that depends on game state the player don't have access
1218 * to. It may be possible for the player to later gain access to
1219 * this game state. It isn't really a special value since it is
1220 * in range.
1222struct act_prob {
1223 int min;
1224 int max;
1231};
1232
1233/* Road type compatibility with old specials based roads.
1234 * Used in the network protocol. */
1236
1237/*
1238 * Maximum number of trade routes a city can have in any situation.
1239 * Changing this changes network protocol.
1240 */
1241#define MAX_TRADE_ROUTES 20
1242
1243/* Used in the network protocol. */
1244#define SPECENUM_NAME goods_selection_method
1245#define SPECENUM_VALUE0 GSM_LEAVING
1246#define SPECENUM_VALUE0NAME "Leaving"
1247#define SPECENUM_VALUE1 GSM_ARRIVAL
1248#define SPECENUM_VALUE1NAME "Arrival"
1276};
1286};
1287
1288/* Used in the network protocol. */
1289#define SPECENUM_NAME tech_cost_style
1290#define SPECENUM_VALUE0 TECH_COST_CIV1CIV2
1291#define SPECENUM_VALUE0NAME "Civ I|II"
1292#define SPECENUM_VALUE1 TECH_COST_CLASSIC
1293#define SPECENUM_VALUE1NAME "Classic"
1294#define SPECENUM_VALUE2 TECH_COST_CLASSIC_PRESET
1295#define SPECENUM_VALUE2NAME "Classic+"
1296#define SPECENUM_VALUE3 TECH_COST_EXPERIMENTAL
1297#define SPECENUM_VALUE3NAME "Experimental"
1298#define SPECENUM_VALUE4 TECH_COST_EXPERIMENTAL_PRESET
1299#define SPECENUM_VALUE4NAME "Experimental+"
1300#define SPECENUM_VALUE5 TECH_COST_LINEAR
1301#define SPECENUM_VALUE5NAME "Linear"
1302#include "specenum_gen.h"
1303
1304/* Used in the network protocol. */
1305#define SPECENUM_NAME tech_leakage_style
1306#define SPECENUM_VALUE0 TECH_LEAKAGE_NONE
1307#define SPECENUM_VALUE0NAME "None"
1308#define SPECENUM_VALUE1 TECH_LEAKAGE_EMBASSIES
1309#define SPECENUM_VALUE1NAME "Embassies"
1310#define SPECENUM_VALUE2 TECH_LEAKAGE_PLAYERS
1311#define SPECENUM_VALUE2NAME "All Players"
1312#define SPECENUM_VALUE3 TECH_LEAKAGE_NO_BARBS
1313#define SPECENUM_VALUE3NAME "Normal Players"
1314#include "specenum_gen.h"
1315
1316/* Used in the network protocol. */
1317#define SPECENUM_NAME gold_upkeep_style
1318#define SPECENUM_VALUE0 GOLD_UPKEEP_CITY
1319#define SPECENUM_VALUE0NAME "City"
1320#define SPECENUM_VALUE1 GOLD_UPKEEP_MIXED
1321#define SPECENUM_VALUE1NAME "Mixed"
1322#define SPECENUM_VALUE2 GOLD_UPKEEP_NATION
1323#define SPECENUM_VALUE2NAME "Nation"
1324#include "specenum_gen.h"
1325
1326/* Used in the network protocol. */
1327#define SPECENUM_NAME vision_layer
1328#define SPECENUM_VALUE0 V_MAIN
1329#define SPECENUM_VALUE0NAME "Main"
1330#define SPECENUM_VALUE1 V_INVIS
1331#define SPECENUM_VALUE1NAME "Stealth"
1332#define SPECENUM_VALUE2 V_SUBSURFACE
1333#define SPECENUM_VALUE2NAME "Subsurface"
1334#define SPECENUM_COUNT V_COUNT
1337typedef float adv_want;
1338#define ADV_WANT_PRINTF "%f"
1339
1340/* Used in the network protocol. */
1341#define SPECENUM_NAME setting_default_level
1342#define SPECENUM_VALUE0 SETDEF_INTERNAL
1343#define SPECENUM_VALUE0NAME "Internal"
1344#define SPECENUM_VALUE1 SETDEF_RULESET
1345#define SPECENUM_VALUE1NAME "Ruleset"
1346#define SPECENUM_VALUE2 SETDEF_CHANGED
1347#define SPECENUM_VALUE2NAME "Changed"
1348#include "specenum_gen.h"
1349
1350/* Used in the network protocol. */
1351#define SPECENUM_NAME capital_type
1352#define SPECENUM_VALUE0 CAPITAL_NOT
1353#define SPECENUM_VALUE0NAME "Not"
1354#define SPECENUM_VALUE1 CAPITAL_SECONDARY
1355#define SPECENUM_VALUE1NAME "Secondary"
1356#define SPECENUM_VALUE2 CAPITAL_PRIMARY
1357#define SPECENUM_VALUE2NAME "Primary"
1358#include "specenum_gen.h"
1359
1360/* Used in the network protocol. */
1361#define SPECENUM_NAME wonder_visib_type
1362#define SPECENUM_VALUE0 WV_ALWAYS
1363#define SPECENUM_VALUE0NAME "Always"
1364#define SPECENUM_VALUE1 WV_NEVER
1365#define SPECENUM_VALUE1NAME "Never"
1366#define SPECENUM_VALUE2 WV_EMBASSY
1367#define SPECENUM_VALUE2NAME "Embassy"
1368#include "specenum_gen.h"
1369
1370/* Used in the network protocol. */
1371#define SPECENUM_NAME transp_def_type
1372#define SPECENUM_VALUE0 TDT_ALIGHT
1373#define SPECENUM_VALUE0NAME "Alight"
1374#define SPECENUM_VALUE1 TDT_BLOCKED
1375#define SPECENUM_VALUE1NAME "Blocked"
1376#define SPECENUM_VALUE2 TDT_ALWAYS
1377#define SPECENUM_VALUE2NAME "Always"
1378#include "specenum_gen.h"
1379
1380/* Used in the savegames, by numeric value. */
1381#define SPECENUM_NAME city_acquire_type
1382#define SPECENUM_VALUE0 CACQ_CONQUEST
1383#define SPECENUM_VALUE0NAME "Conquest"
1384#define SPECENUM_VALUE1 CACQ_FOUNDED
1385#define SPECENUM_VALUE1NAME "Founded"
1386#include "specenum_gen.h"
1387
1388#ifdef __cplusplus
1389}
1390#endif /* __cplusplus */
1391
1392#endif /* FC__FC_TYPES_H */
#define BV_DEFINE(name, bits)
Definition bitvector.h:132
char * incite_cost
Definition comments.c:74
const char * ai_level_name_update_cb(const char *old)
Definition ai.c:374
int Road_type_id
Definition fc_types.h:388
trait_dist_mode
Definition fc_types.h:1023
@ TDM_FIXED
Definition fc_types.h:1024
@ TDM_EVEN
Definition fc_types.h:1025
enum unit_activity Activity_type_id
Definition fc_types.h:383
float adv_want
Definition fc_types.h:1335
road_compat
Definition fc_types.h:1233
@ ROCO_RAILROAD
Definition fc_types.h:1233
@ ROCO_NONE
Definition fc_types.h:1233
@ ROCO_RIVER
Definition fc_types.h:1233
@ ROCO_ROAD
Definition fc_types.h:1233
int Goods_type_id
Definition fc_types.h:391
diplomacy_mode
Definition fc_types.h:1029
@ DIPLO_NO_MIXED
Definition fc_types.h:1034
@ DIPLO_FOR_TEAMS
Definition fc_types.h:1035
@ DIPLO_NO_AIS
Definition fc_types.h:1033
@ DIPLO_FOR_HUMANS
Definition fc_types.h:1031
@ DIPLO_FOR_ALL
Definition fc_types.h:1030
@ DIPLO_FOR_AIS
Definition fc_types.h:1032
@ DIPLO_DISABLED
Definition fc_types.h:1036
environment_upset_type
Definition fc_types.h:1258
@ EUT_NUCLEAR_WINTER
Definition fc_types.h:1260
@ EUT_GLOBAL_WARMING
Definition fc_types.h:1259
int server_setting_id
Definition fc_types.h:1050
int Tech_type_id
Definition fc_types.h:381
unsigned char citizens
Definition fc_types.h:392
int Impr_type_id
Definition fc_types.h:380
int ssetv
Definition fc_types.h:670
req_problem_type
Definition fc_types.h:676
@ RPT_CERTAIN
Definition fc_types.h:678
@ RPT_POSSIBLE
Definition fc_types.h:677
revolen_type
Definition fc_types.h:1263
@ REVOLEN_RANDOM
Definition fc_types.h:1265
@ REVOLEN_RANDQUICK
Definition fc_types.h:1267
@ REVOLEN_FIXED
Definition fc_types.h:1264
@ REVOLEN_QUICKENING
Definition fc_types.h:1266
adv_unit_task
Definition fc_types.h:374
@ AUT_BUILD_CITY
Definition fc_types.h:374
@ AUT_NONE
Definition fc_types.h:374
@ AUT_AUTO_WORKER
Definition fc_types.h:374
int Unit_Class_id
Definition fc_types.h:420
int Nation_type_id
Definition fc_types.h:384
int Terrain_type_id
Definition fc_types.h:377
int action_id
Definition fc_types.h:393
int Specialist_type_id
Definition fc_types.h:379
int Government_type_id
Definition fc_types.h:385
test_result
Definition fc_types.h:1225
@ TR_ALREADY_SOLD
Definition fc_types.h:1228
@ TR_OTHER_FAILURE
Definition fc_types.h:1227
@ TR_SUCCESS
Definition fc_types.h:1226
#define MAX_NUM_PLAYER_SLOTS
Definition fc_types.h:32
happyborders_type
Definition fc_types.h:1270
@ HB_ALLIANCE
Definition fc_types.h:1273
@ HB_DISABLED
Definition fc_types.h:1271
@ HB_NATIONAL
Definition fc_types.h:1272
FC_STATIC_ASSERT(EC_COUNT< 16, extra_causes_over_limit)
int Resource_type_id
Definition fc_types.h:378
#define MAX_EXTRA_TYPES
Definition fc_types.h:50
counter_target
Definition fc_types.h:126
@ CTGT_CITY
Definition fc_types.h:126
#define MAX_NUM_STARTPOS_NATIONS
Definition fc_types.h:61
spaceship_place_type
Definition fc_types.h:1277
@ SSHIP_PLACE_PROPULSION
Definition fc_types.h:1280
@ SSHIP_PLACE_STRUCTURAL
Definition fc_types.h:1278
@ SSHIP_PLACE_LIFE_SUPPORT
Definition fc_types.h:1282
@ SSHIP_PLACE_SOLAR_PANELS
Definition fc_types.h:1283
@ SSHIP_PLACE_FUEL
Definition fc_types.h:1279
@ SSHIP_PLACE_HABITATION
Definition fc_types.h:1281
#define CITY_MAP_MAX_RADIUS
Definition fc_types.h:83
int Unit_type_id
Definition fc_types.h:386
victory_condition_type
Definition fc_types.h:1250
@ VC_SPACERACE
Definition fc_types.h:1251
@ VC_CULTURE
Definition fc_types.h:1253
@ VC_ALLIED
Definition fc_types.h:1252
@ VC_WORLDPEACE
Definition fc_types.h:1254
int Disaster_type_id
Definition fc_types.h:389
output_type_id
Definition fc_types.h:100
@ O_SHIELD
Definition fc_types.h:101
@ O_FOOD
Definition fc_types.h:101
@ O_TRADE
Definition fc_types.h:101
@ O_SCIENCE
Definition fc_types.h:101
@ O_LUXURY
Definition fc_types.h:101
@ O_GOLD
Definition fc_types.h:101
@ O_LAST
Definition fc_types.h:101
signed short Continent_id
Definition fc_types.h:376
borders_mode
Definition fc_types.h:1016
@ BORDERS_ENABLED
Definition fc_types.h:1018
@ BORDERS_DISABLED
Definition fc_types.h:1017
@ BORDERS_SEE_INSIDE
Definition fc_types.h:1019
@ BORDERS_EXPAND
Definition fc_types.h:1020
int Base_type_id
Definition fc_types.h:387
int Multiplier_type_id
Definition fc_types.h:390
enum output_type_id Output_type_id
Definition fc_types.h:382
override_bool
Definition fc_types.h:94
@ OVERRIDE_TRUE
Definition fc_types.h:94
@ NO_OVERRIDE
Definition fc_types.h:94
@ OVERRIDE_FALSE
Definition fc_types.h:94
Definition city.h:320
Definition tile.h:50
Definition unit.h:140
enum universals_n kind
Definition fc_types.h:880
universals_u value
Definition fc_types.h:879