|
Freeciv-3.4
|
Go to the source code of this file.
Enumerations | |
| enum | rt_verbosity { VERB_DEFAULT , VERB_ACTUAL } |
Functions | |
| bool | req_text_insert (char *buf, size_t bufsz, struct player *pplayer, const struct requirement *preq, enum rt_verbosity verb, const char *prefix) |
| bool | req_text_insert_nl (char *buf, size_t bufsz, struct player *pplayer, const struct requirement *preq, enum rt_verbosity verb, const char *prefix) |
| bool req_text_insert | ( | char * | buf, |
| size_t | bufsz, | ||
| struct player * | pplayer, | ||
| const struct requirement * | preq, | ||
| enum rt_verbosity | verb, | ||
| const char * | prefix | ||
| ) |
Append text for the requirement. Something like
"Requires knowledge of the technology Communism."
pplayer may be nullptr. Note - this file must be updated every time a new requirement type or range is defined.
returns TRUE if success, FALSE if any problem or "Not supported". Loading the ruleset should already have filtered out the "Not supported".
Definition at line 4526 of file reqtext.c.
Referenced by req_edit::refresh_item(), and req_text_insert_nl().
| bool req_text_insert_nl | ( | char * | buf, |
| size_t | bufsz, | ||
| struct player * | pplayer, | ||
| const struct requirement * | preq, | ||
| enum rt_verbosity | verb, | ||
| const char * | prefix | ||
| ) |
Append text for the requirement. Added line ends to a newline.
returns TRUE if success, FALSE if any problem or "Not supported".
Definition at line 4755 of file reqtext.c.
Referenced by helptext_advance(), helptext_building(), helptext_extra(), helptext_goods(), helptext_government(), helptext_specialist(), and helptext_unit().