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