Freeciv-3.3: /fast/freeciv/nightly/main/common/reqtext.c File Reference

Freeciv-3.3

Loading...
Searching...
No Matches
Functions
reqtext.c File Reference
`#include "astring.h"`
`#include "fcintl.h"`
`#include "achievements.h"`
`#include "actions.h"`
`#include "calendar.h"`
`#include "counters.h"`
`#include "extras.h"`
`#include "government.h"`
`#include "map.h"`
`#include "movement.h"`
`#include "nation.h"`
`#include "player.h"`
`#include "requirements.h"`
`#include "server_settings.h"`
`#include "specialist.h"`
`#include "terrain.h"`
`#include "reqtext.h"`

Go to the source code of this file.

## 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)

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

Definition at line 48 of file reqtext.c.

Referenced by req_edit::refresh_item(), 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 3314 of file reqtext.c.

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