![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "log.h"#include "registry.h"#include "registry_ini.h"#include "section_file.h"#include "shared.h"#include "comments.h"
Include dependency graph for comments.cpp:Go to the source code of this file.
Macros | |
| #define | comment_load(target, comment_file, comment_path) |
Functions | |
| bool | comments_load () |
| Load comments to add to the saved rulesets. More... | |
| void | comments_free () |
| Free comments. More... | |
| static void | comment_write (struct section_file *sfile, const char *comment, const char *name) |
| Generic comment writing function with some error checking. More... | |
| void | comment_file_header (struct section_file *sfile) |
| Write file header. More... | |
| void | comment_buildings (struct section_file *sfile) |
| Write buildings header. More... | |
| void | comment_tech_classes (struct section_file *sfile) |
| Write tech classess header. More... | |
| void | comment_techs (struct section_file *sfile) |
| Write techs header. More... | |
| void | comment_govs (struct section_file *sfile) |
| Write governments header. More... | |
| void | comment_policies (struct section_file *sfile) |
| Write policies header. More... | |
| void | comment_uclasses (struct section_file *sfile) |
| Write unit classes header. More... | |
| void | comment_utypes (struct section_file *sfile) |
| Write unit types header. More... | |
| void | comment_terrains (struct section_file *sfile) |
| Write terrains header. More... | |
| void | comment_resources (struct section_file *sfile) |
| Write resources header. More... | |
| void | comment_extras (struct section_file *sfile) |
| Write extras header. More... | |
| void | comment_bases (struct section_file *sfile) |
| Write bases header. More... | |
| void | comment_roads (struct section_file *sfile) |
| Write roads header. More... | |
| void | comment_styles (struct section_file *sfile) |
| Write styles header. More... | |
| void | comment_citystyles (struct section_file *sfile) |
| Write city styles header. More... | |
| void | comment_musicstyles (struct section_file *sfile) |
| Write music styles header. More... | |
| void | comment_effects (struct section_file *sfile) |
| Write effects header. More... | |
| void | comment_disasters (struct section_file *sfile) |
| Write disasters header. More... | |
| void | comment_achievements (struct section_file *sfile) |
| Write achievements header. More... | |
| void | comment_goods (struct section_file *sfile) |
| Write goods header. More... | |
| void | comment_enablers (struct section_file *sfile) |
| Write action enablers header. More... | |
| void | comment_specialists (struct section_file *sfile) |
| Write specialists header. More... | |
| void | comment_nations (struct section_file *sfile) |
| Write nations header. More... | |
| void | comment_nationgroups (struct section_file *sfile) |
| Write nationgroups header. More... | |
| void | comment_nationsets (struct section_file *sfile) |
| Write nationsets header. More... | |
| void | comment_clauses (struct section_file *sfile) |
| Write clauses header. More... | |
Variables | |
| struct { | |
| char * file_header | |
| char * buildings | |
| char * tech_classes | |
| char * techs | |
| char * govs | |
| char * policies | |
| char * uclasses | |
| char * utypes | |
| char * terrains | |
| char * resources | |
| char * extras | |
| char * bases | |
| char * roads | |
| char * styles | |
| char * citystyles | |
| char * musicstyles | |
| char * effects | |
| char * disasters | |
| char * achievements | |
| char * goods | |
| char * enablers | |
| char * specialists | |
| char * nations | |
| char * nationgroups | |
| char * nationsets | |
| char * clauses | |
| } | comments_storage |
| #define comment_load | ( | target, | |
| comment_file, | |||
| comment_path | |||
| ) |
| void comment_achievements | ( | struct section_file * | sfile | ) |
Write achievements header.
Definition at line 292 of file comments.cpp.
Referenced by save_game_ruleset().
| void comment_bases | ( | struct section_file * | sfile | ) |
Write bases header.
Definition at line 236 of file comments.cpp.
Referenced by save_terrain_ruleset().
| void comment_buildings | ( | struct section_file * | sfile | ) |
Write buildings header.
Definition at line 156 of file comments.cpp.
Referenced by save_buildings_ruleset().
| void comment_citystyles | ( | struct section_file * | sfile | ) |
Write city styles header.
Definition at line 260 of file comments.cpp.
Referenced by save_styles_ruleset().
| void comment_clauses | ( | struct section_file * | sfile | ) |
Write clauses header.
Definition at line 348 of file comments.cpp.
Referenced by save_game_ruleset().
| void comment_disasters | ( | struct section_file * | sfile | ) |
Write disasters header.
Definition at line 284 of file comments.cpp.
Referenced by save_game_ruleset().
| void comment_effects | ( | struct section_file * | sfile | ) |
Write effects header.
Definition at line 276 of file comments.cpp.
Referenced by save_effects_ruleset().
| void comment_enablers | ( | struct section_file * | sfile | ) |
Write action enablers header.
Definition at line 308 of file comments.cpp.
Referenced by save_game_ruleset().
| void comment_extras | ( | struct section_file * | sfile | ) |
Write extras header.
Definition at line 228 of file comments.cpp.
Referenced by save_terrain_ruleset().
| void comment_file_header | ( | struct section_file * | sfile | ) |
Write file header.
Definition at line 148 of file comments.cpp.
Referenced by create_ruleset_file().
| void comment_goods | ( | struct section_file * | sfile | ) |
| void comment_govs | ( | struct section_file * | sfile | ) |
Write governments header.
Definition at line 180 of file comments.cpp.
Referenced by save_governments_ruleset().
| void comment_musicstyles | ( | struct section_file * | sfile | ) |
Write music styles header.
Definition at line 268 of file comments.cpp.
Referenced by save_styles_ruleset().
| void comment_nationgroups | ( | struct section_file * | sfile | ) |
Write nationgroups header.
Definition at line 332 of file comments.cpp.
Referenced by save_nations_ruleset().
| void comment_nations | ( | struct section_file * | sfile | ) |
Write nations header.
Definition at line 324 of file comments.cpp.
Referenced by save_nations_ruleset().
| void comment_nationsets | ( | struct section_file * | sfile | ) |
Write nationsets header.
Definition at line 340 of file comments.cpp.
Referenced by save_nations_ruleset().
| void comment_policies | ( | struct section_file * | sfile | ) |
Write policies header.
Definition at line 188 of file comments.cpp.
Referenced by save_governments_ruleset().
| void comment_resources | ( | struct section_file * | sfile | ) |
Write resources header.
Definition at line 220 of file comments.cpp.
Referenced by save_terrain_ruleset().
| void comment_roads | ( | struct section_file * | sfile | ) |
Write roads header.
Definition at line 244 of file comments.cpp.
Referenced by save_terrain_ruleset().
| void comment_specialists | ( | struct section_file * | sfile | ) |
Write specialists header.
Definition at line 316 of file comments.cpp.
Referenced by save_cities_ruleset().
| void comment_styles | ( | struct section_file * | sfile | ) |
Write styles header.
Definition at line 252 of file comments.cpp.
Referenced by save_styles_ruleset().
| void comment_tech_classes | ( | struct section_file * | sfile | ) |
Write tech classess header.
Definition at line 164 of file comments.cpp.
Referenced by save_techs_ruleset().
| void comment_techs | ( | struct section_file * | sfile | ) |
Write techs header.
Definition at line 172 of file comments.cpp.
Referenced by save_techs_ruleset().
| void comment_terrains | ( | struct section_file * | sfile | ) |
Write terrains header.
Definition at line 212 of file comments.cpp.
Referenced by save_terrain_ruleset().
| void comment_uclasses | ( | struct section_file * | sfile | ) |
Write unit classes header.
Definition at line 196 of file comments.cpp.
Referenced by save_units_ruleset().
| void comment_utypes | ( | struct section_file * | sfile | ) |
Write unit types header.
Definition at line 204 of file comments.cpp.
Referenced by save_units_ruleset().
|
static |
Generic comment writing function with some error checking.
Definition at line 134 of file comments.cpp.
Referenced by comment_achievements(), comment_bases(), comment_buildings(), comment_citystyles(), comment_clauses(), comment_disasters(), comment_effects(), comment_enablers(), comment_extras(), comment_file_header(), comment_goods(), comment_govs(), comment_musicstyles(), comment_nationgroups(), comment_nations(), comment_nationsets(), comment_policies(), comment_resources(), comment_roads(), comment_specialists(), comment_styles(), comment_tech_classes(), comment_techs(), comment_terrains(), comment_uclasses(), and comment_utypes().
| void comments_free | ( | ) |
| bool comments_load | ( | ) |
Load comments to add to the saved rulesets.
Definition at line 55 of file comments.cpp.
Referenced by main().
| char* achievements |
Definition at line 42 of file comments.cpp.
| char* bases |
Definition at line 35 of file comments.cpp.
Referenced by base_by_number().
| char* buildings |
Definition at line 25 of file comments.cpp.
| char* citystyles |
Definition at line 38 of file comments.cpp.
| char* clauses |
Definition at line 49 of file comments.cpp.
| struct { ... } comments_storage |
Referenced by comment_achievements(), comment_bases(), comment_buildings(), comment_citystyles(), comment_clauses(), comment_disasters(), comment_effects(), comment_enablers(), comment_extras(), comment_file_header(), comment_goods(), comment_govs(), comment_musicstyles(), comment_nationgroups(), comment_nations(), comment_nationsets(), comment_policies(), comment_resources(), comment_roads(), comment_specialists(), comment_styles(), comment_tech_classes(), comment_techs(), comment_terrains(), comment_uclasses(), comment_utypes(), comments_free(), and comments_load().
| char* disasters |
Definition at line 41 of file comments.cpp.
| char* effects |
Definition at line 40 of file comments.cpp.
| char* enablers |
Definition at line 44 of file comments.cpp.
| char* extras |
Definition at line 34 of file comments.cpp.
Referenced by freeciv::layer_water::fill_sprite_array(), get_infrastructure_text(), get_preferred_pillage(), is_native_to_class(), mr_menu::menus_sensitive(), popup_pillage_dialog(), sg_bases_set(), sg_extras_get(), sg_extras_set(), sg_load_player_vision(), sg_roads_set(), sg_save_player_vision(), sg_special_set(), mr_menu::slot_conn_irrigation(), and unit_assign_specific_activity_target().
| char* file_header |
Definition at line 24 of file comments.cpp.
| char* goods |
Definition at line 43 of file comments.cpp.
Referenced by do_unit_establish_trade().
| char* govs |
Definition at line 28 of file comments.cpp.
| char* musicstyles |
Definition at line 39 of file comments.cpp.
| char* nationgroups |
Definition at line 47 of file comments.cpp.
| char* nations |
Definition at line 46 of file comments.cpp.
| char* nationsets |
Definition at line 48 of file comments.cpp.
| char* policies |
Definition at line 29 of file comments.cpp.
| char* resources |
Definition at line 33 of file comments.cpp.
| char* roads |
Definition at line 36 of file comments.cpp.
Referenced by road_by_number().
| char* specialists |
Definition at line 45 of file comments.cpp.
| char* styles |
Definition at line 37 of file comments.cpp.
| char* tech_classes |
Definition at line 26 of file comments.cpp.
| char* techs |
Definition at line 27 of file comments.cpp.
Referenced by research_get_reachable_rreqs().
| char* terrains |
Definition at line 32 of file comments.cpp.
| char* uclasses |
Definition at line 30 of file comments.cpp.
| char* utypes |
Definition at line 31 of file comments.cpp.
Referenced by helptext_nation().