![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <nation.h>
Collaboration diagram for nation_type:Public Member Functions | |
| nation_type () | |
| Allocate resources associated with the given nation. More... | |
| ~nation_type () | |
| De-allocate resources associated with the given nation. More... | |
Public Attributes | |
| Nation_type_id | item_number = 0 |
| char * | translation_domain = nullptr |
| 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_list * | leaders = nullptr |
| struct nation_style * | style = nullptr |
| char * | legend = nullptr |
| bool | is_playable = true |
| enum barbarian_type | barb_type = NOT_A_BARBARIAN |
| struct nation_set_list * | sets |
| struct nation_group_list * | groups |
| struct player * | player = nullptr |
| int | init_techs [MAX_NUM_TECH_LIST] |
| int | init_buildings [MAX_NUM_BUILDING_LIST] |
| government * | init_government |
| std::array< unit_type *, MAX_NUM_UNIT_LIST > | init_units = {nullptr} |
| 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 | |
| }; | |
| nation_type::nation_type | ( | ) |
Allocate resources associated with the given nation.
Constructor for nation_type
Definition at line 474 of file nation.cpp.
| nation_type::~nation_type | ( | ) |
De-allocate resources associated with the given nation.
Destructor for nation_type
Definition at line 499 of file nation.cpp.
| union { ... } |
| struct name_translation nation_type::adjective |
Definition at line 79 of file nation.h.
Referenced by handle_ruleset_nation(), load_nation_names(), nation_adjective_translation(), nation_rule_name(), nation_type(), and save_nation().
| enum barbarian_type nation_type::barb_type = NOT_A_BARBARIAN |
Definition at line 88 of file nation.h.
Referenced by handle_ruleset_nation(), load_ruleset_nations(), pick_a_nation(), and save_nation().
| struct { ... } nation_type::client |
Referenced by handle_nation_availability(), handle_ruleset_nation(), is_nation_pickable(), and nation_type().
| char nation_type::flag_graphic_alt[MAX_LEN_NAME] |
Definition at line 83 of file nation.h.
Referenced by handle_ruleset_nation(), save_nation(), and tileset_setup_nation_flag().
| char nation_type::flag_graphic_str[MAX_LEN_NAME] |
Definition at line 82 of file nation.h.
Referenced by handle_ruleset_nation(), save_nation(), and tileset_setup_nation_flag().
| struct nation_group_list* nation_type::groups |
Definition at line 95 of file nation.h.
Referenced by handle_ruleset_nation(), nation_is_in_group(), nation_type(), and ~nation_type().
| int nation_type::init_buildings[MAX_NUM_BUILDING_LIST] |
Definition at line 102 of file nation.h.
Referenced by city_build_free_buildings(), handle_ruleset_nation(), helptext_nation(), and save_nation().
| government* nation_type::init_government |
Definition at line 103 of file nation.h.
Referenced by final_ruleset_adjustments(), handle_ruleset_nation(), helptext_nation(), init_government_of_nation(), and save_nation().
| int nation_type::init_techs[MAX_NUM_TECH_LIST] |
Definition at line 101 of file nation.h.
Referenced by give_initial_techs(), handle_ruleset_nation(), helptext_nation(), nation_has_initial_tech(), and save_nation().
| std::array<unit_type *, MAX_NUM_UNIT_LIST> nation_type::init_units = {nullptr} |
Definition at line 105 of file nation.h.
Referenced by handle_ruleset_nation(), helptext_nation(), init_new_game(), and save_nation().
| bool nation_type::is_playable = true |
Definition at line 88 of file nation.h.
Referenced by handle_ruleset_nation(), is_nation_playable(), and save_nation().
| Nation_type_id nation_type::item_number = 0 |
Definition at line 78 of file nation.h.
Referenced by nations_alloc().
| struct nation_leader_list* nation_type::leaders = nullptr |
Definition at line 84 of file nation.h.
Referenced by nation_leader_by_name(), nation_leader_new(), nation_leaders(), nation_type(), save_nation(), and ~nation_type().
| char* nation_type::legend = nullptr |
Definition at line 86 of file nation.h.
Referenced by handle_ruleset_nation(), helptext_nation(), load_ruleset_nations(), save_nation(), and ~nation_type().
| struct name_translation nation_type::noun_plural |
Definition at line 79 of file nation.h.
Referenced by handle_ruleset_nation(), load_nation_names(), nation_plural_translation(), nation_type(), and save_nation().
| struct player* nation_type::player = nullptr |
Definition at line 97 of file nation.h.
Referenced by handle_edit_player(), handle_nation_select_req(), player_set_nation(), and playernation_command().
| struct { ... } nation_type::server |
| struct nation_set_list* nation_type::sets |
Definition at line 92 of file nation.h.
Referenced by handle_ruleset_nation(), nation_is_in_set(), nation_type(), and ~nation_type().
| struct nation_style* nation_type::style = nullptr |
Definition at line 85 of file nation.h.
Referenced by handle_ruleset_nation(), save_nation(), and style_of_nation().
| struct trait_limits* nation_type::traits |
| char* nation_type::translation_domain = nullptr |
Definition at line 79 of file nation.h.
Referenced by government_ruler_title_new(), handle_ruleset_nation(), nation_legend_translation(), save_nation(), and ~nation_type().