Freeciv-3.2
Loading...
Searching...
No Matches
Data Fields
nation_type Struct Reference

#include <nation.h>

Data Fields

Nation_type_id item_number
 
chartranslation_domain
 
struct name_translation adjective
 
struct name_translation noun_plural
 
char flag_graphic_str [MAX_LEN_NAME]
 
char flag_graphic_alt [MAX_LEN_NAME]
 
struct nation_leader_listleaders
 
struct nation_stylestyle
 
charlegend
 
bool is_playable
 
enum barbarian_type barb_type
 
struct nation_set_listsets
 
struct nation_group_listgroups
 
struct playerplayer
 
int init_techs [MAX_NUM_TECH_LIST]
 
int init_buildings [MAX_NUM_BUILDING_LIST]
 
struct governmentinit_government
 
struct unit_typeinit_units [MAX_NUM_UNIT_LIST]
 
union { 
 
   struct { 
 
      struct nation_city_list *   default_cities 
 
      struct nation_list *   civilwar_nations 
 
      struct nation_list *   parent_nations 
 
      struct nation_list *   conflicts_with 
 
      struct rgbcolor *   rgb 
 
      struct trait_limits *   traits 
 
      bool   no_startpos 
 
   }   server 
 
   struct { 
 
      bool   is_pickable 
 
   }   client 
 
};  
 

Detailed Description

Definition at line 98 of file nation.h.

Field Documentation

◆ [union]

union { ... } nation_type

◆ adjective

struct name_translation nation_type::adjective

Definition at line 101 of file nation.h.

Referenced by handle_ruleset_nation(), nation_adjective_translation(), and nation_rule_name().

◆ barb_type

enum barbarian_type nation_type::barb_type

◆ civilwar_nations

struct nation_list* nation_type::civilwar_nations

Definition at line 135 of file nation.h.

Referenced by city_name_suggestion(), nation_free(), and nation_init().

◆ [struct]

struct { ... } nation_type::client

◆ conflicts_with

struct nation_list* nation_type::conflicts_with

Definition at line 140 of file nation.h.

Referenced by nation_free(), and nation_init().

◆ default_cities

struct nation_city_list* nation_type::default_cities

Definition at line 131 of file nation.h.

Referenced by nation_cities(), nation_city_new(), nation_free(), and nation_init().

◆ flag_graphic_alt

char nation_type::flag_graphic_alt[MAX_LEN_NAME]

Definition at line 104 of file nation.h.

Referenced by handle_ruleset_nation(), and tileset_setup_nation_flag().

◆ flag_graphic_str

char nation_type::flag_graphic_str[MAX_LEN_NAME]

Definition at line 103 of file nation.h.

Referenced by handle_ruleset_nation(), and tileset_setup_nation_flag().

◆ groups

struct nation_group_list* nation_type::groups

Definition at line 116 of file nation.h.

Referenced by handle_ruleset_nation(), nation_free(), nation_init(), and nation_is_in_group().

◆ init_buildings

int nation_type::init_buildings[MAX_NUM_BUILDING_LIST]

Definition at line 123 of file nation.h.

Referenced by city_build_free_buildings(), handle_ruleset_nation(), and helptext_nation().

◆ init_government

struct government* nation_type::init_government

◆ init_techs

int nation_type::init_techs[MAX_NUM_TECH_LIST]

◆ init_units

struct unit_type* nation_type::init_units[MAX_NUM_UNIT_LIST]

Definition at line 125 of file nation.h.

Referenced by handle_ruleset_nation(), helptext_nation(), and init_new_game().

◆ is_pickable

bool nation_type::is_pickable

Definition at line 161 of file nation.h.

Referenced by handle_nation_availability(), handle_ruleset_nation(), and is_nation_pickable().

◆ is_playable

bool nation_type::is_playable

Definition at line 109 of file nation.h.

Referenced by handle_ruleset_nation(), and is_nation_playable().

◆ item_number

Nation_type_id nation_type::item_number

Definition at line 99 of file nation.h.

Referenced by nation_init(), and nation_number().

◆ leaders

struct nation_leader_list* nation_type::leaders

◆ legend

char* nation_type::legend

◆ no_startpos

bool nation_type::no_startpos

Definition at line 148 of file nation.h.

Referenced by client_can_pick_nation().

◆ noun_plural

struct name_translation nation_type::noun_plural

Definition at line 102 of file nation.h.

Referenced by handle_ruleset_nation(), and nation_plural_translation().

◆ parent_nations

struct nation_list* nation_type::parent_nations

Definition at line 136 of file nation.h.

Referenced by city_name_suggestion(), nation_free(), and nation_init().

◆ player

struct player* nation_type::player

◆ rgb

struct rgbcolor* nation_type::rgb

Definition at line 143 of file nation.h.

Referenced by nation_color(), and nation_free().

◆ [struct]

struct { ... } nation_type::server

◆ sets

struct nation_set_list* nation_type::sets

Definition at line 113 of file nation.h.

Referenced by handle_ruleset_nation(), nation_free(), nation_init(), and nation_is_in_set().

◆ style

struct nation_style* nation_type::style

Definition at line 106 of file nation.h.

Referenced by handle_ruleset_nation(), and style_of_nation().

◆ traits

struct trait_limits* nation_type::traits

◆ translation_domain

char* nation_type::translation_domain