41 #define HELP_OVERVIEW_ITEM N_("?help:Overview")
42 #define HELP_PLAYING_ITEM N_("Strategy and Tactics")
43 #define HELP_LANGUAGES_ITEM N_("Languages")
44 #define HELP_CONNECTING_ITEM N_("Connecting")
45 #define HELP_CHATLINE_ITEM N_("Chatline")
46 #define HELP_WORKLIST_EDITOR_ITEM N_("Worklist Editor")
47 #define HELP_CMA_ITEM N_("Citizen Governor")
48 #define HELP_CONTROLS_ITEM N_("Controls")
49 #define HELP_RULESET_ITEM N_("About Current Ruleset")
50 #define HELP_TILESET_ITEM N_("About Current Tileset")
51 #define HELP_NATIONS_ITEM N_("About Nations")
52 #define HELP_ECONOMY_ITEM N_("Economy")
53 #define HELP_CITIES_ITEM N_("Cities")
54 #define HELP_IMPROVEMENTS_ITEM N_("City Improvements")
55 #define HELP_UNITS_ITEM N_("Units")
56 #define HELP_COMBAT_ITEM N_("Combat")
57 #define HELP_ZOC_ITEM N_("Zones of Control")
58 #define HELP_TECHS_ITEM N_("Technology")
59 #define HELP_EXTRAS_ITEM N_("Extras")
60 #define HELP_TERRAIN_ITEM N_("Terrain")
61 #define HELP_WONDERS_ITEM N_("Wonders of the World")
62 #define HELP_GOVERNMENT_ITEM N_("Government")
63 #define HELP_EFFECTS_ITEM N_("Effects")
64 #define HELP_DIPLOMACY_ITEM N_("Diplomacy")
65 #define HELP_SPACE_RACE_ITEM N_("Space Race")
66 #define HELP_COPYING_ITEM N_("Copying")
67 #define HELP_ABOUT_ITEM N_("About Freeciv21")
68 #define HELP_MULTIPLIER_ITEM N_("Policies")
84 const char *user_text,
88 const char *user_text,
const struct unit_type *utype,
91 const char *user_text,
int i,
94 const char *user_text,
struct terrain *pterrain);
96 const char *user_text,
struct extra_type *pextra);
98 const char *user_text,
struct goods_type *pgood);
100 const char *user_text,
struct specialist *pspec);
102 const char *user_text,
struct government *gov);
104 const char *user_text);
111 enum unit_activity act);
char * helptext_unit_upkeep_str(const struct unit_type *punittype)
Returns pointer to static string with eg: "1 shield, 1 unhappy".
void helptext_advance(char *buf, size_t bufsz, struct player *pplayer, const char *user_text, int i, const nation_set *nations_to_show)
Append misc dynamic text for advance/technology.
void helptext_government(char *buf, size_t bufsz, struct player *pplayer, const char *user_text, struct government *gov)
Append text for government.
void helptext_extra(char *buf, size_t bufsz, struct player *pplayer, const char *user_text, struct extra_type *pextra)
Append misc dynamic text for extras.
char * helptext_unit(char *buf, size_t bufsz, struct player *pplayer, const char *user_text, const struct unit_type *utype, const nation_set *nations_to_show)
Append misc dynamic text for units.
const char * helptext_road_bonus_str(const struct terrain *pterrain, const struct road_type *proad)
Return a textual representation of the F/P/T bonus a road provides to a terrain if supplied,...
const struct help_item * get_help_item_spec(const char *name, enum help_page_type htype, int *pos)
The following few functions are essentially wrappers for the help_nodes help_list.
char * helptext_building(char *buf, size_t bufsz, struct player *pplayer, const char *user_text, const struct impr_type *pimprove, const nation_set *nations_to_show)
FIXME: Also, in principle these could be auto-generated once, inserted into pitem->text,...
void helptext_goods(char *buf, size_t bufsz, struct player *pplayer, const char *user_text, struct goods_type *pgood)
Append misc dynamic text for goods.
struct help_item * new_help_item(help_page_type type)
Allocate and initialize new help item.
void free_help_texts()
Free all allocations associated with help_nodes.
const char * helptext_extra_for_terrain_str(struct extra_type *pextra, struct terrain *pterrain, enum unit_activity act)
Return a brief description specific to the extra and terrain, when extra is built by cause 'act'.
void boot_help_texts(const nation_set *nations_to_show, help_item *tileset_help)
pplayer may be nullptr.
void helptext_specialist(char *buf, size_t bufsz, struct player *pplayer, const char *user_text, struct specialist *pspec)
Append misc dynamic text for specialists.
void helptext_terrain(char *buf, size_t bufsz, struct player *pplayer, const char *user_text, struct terrain *pterrain)
Append text for terrain.
void helptext_nation(char *buf, size_t bufsz, struct nation_type *pnation, const char *user_text)
Returns nation legend and characteristics.
Functions for handling the nations.
help_item * tileset_help(const struct tileset *t)
Creates the help item for the given tileset.