Freeciv21
Develop your civilization from humble roots to a global empire
reqtext.h File Reference
+ This graph shows which files directly or indirectly include this file:

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)
 Append text for the requirement. More...
 
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. More...
 

Enumeration Type Documentation

◆ rt_verbosity

Enumerator
VERB_DEFAULT 
VERB_ACTUAL 

Definition at line 15 of file reqtext.h.

Function Documentation

◆ req_text_insert()

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 that it must be updated everytime a new requirement type or range is defined.

Definition at line 41 of file reqtext.cpp.

Referenced by req_edit::refresh(), and req_text_insert_nl().

◆ 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.

Definition at line 2892 of file reqtext.cpp.

Referenced by helptext_advance(), helptext_building(), helptext_extra(), helptext_goods(), helptext_government(), helptext_specialist(), and helptext_unit().