Freeciv-3.2
Loading...
Searching...
No Matches
text.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 2004 - The Freeciv Project
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14#ifndef FC__TEXT_H
15#define FC__TEXT_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21#include "fc_types.h"
22#include "unitlist.h"
23
24struct player_spaceship;
25
26/****************************************************************************
27 These functions return static strings with generally useful text.
28****************************************************************************/
29const char *get_tile_output_text(const struct tile *ptile);
30const char *popup_info_text(struct tile *ptile);
31const char *get_nearest_city_text(struct city *pcity, int sq_dist);
32const char *unit_description(struct unit *punit);
33const char *get_airlift_text(const struct unit_list *punits,
34 const struct city *pdest);
35const char *science_dialog_text(void);
36const char *get_science_target_text(double *percent);
37const char *get_science_goal_text(Tech_type_id goal);
38const char *get_info_label_text(bool moreinfo);
39const char *get_info_label_text_popup(void);
40const char *get_bulb_tooltip(void);
41const char *get_global_warming_tooltip(void);
42const char *get_nuclear_winter_tooltip(void);
43const char *get_government_tooltip(void);
44const char *get_unit_info_label_text1(struct unit_list *punits);
45const char *get_unit_info_label_text2(struct unit_list *punits, int linebreaks);
46bool get_units_upgrade_info(char *buf, size_t bufsz,
47 struct unit_list *punits);
48bool get_units_disband_info(char *buf, size_t bufsz,
49 struct unit_list *punits);
50const char *get_spaceship_descr(struct player_spaceship *pship);
51const char *get_timeout_label_text(void);
52const char *get_ping_time_text(const struct player *pplayer);
53const char *get_score_text(const struct player *pplayer);
54const char *get_report_title(const char *report_name);
55
57 const struct act_prob prob,
58 const struct unit *actor_unit,
59 const struct city *target_city);
60const char *act_sel_action_tool_tip(const struct action *paction,
61 const struct act_prob prob);
62
63const char *text_happiness_buildings(const struct city *pcity);
64const char *text_happiness_nationality(const struct city *pcity);
65const char *text_happiness_cities(const struct city *pcity);
66const char *text_happiness_luxuries(const struct city *pcity);
67const char *text_happiness_units(const struct city *pcity);
68const char *text_happiness_wonders(const struct city *pcity);
69
70const char *production_help(const struct universal *uni, char *buf,
71 size_t bufsize);
72
73const char *score_tooltip(const struct player *pplayer, int score);
74
75#ifdef __cplusplus
76}
77#endif /* __cplusplus */
78
79#endif /* FC__TEXT_H */
char * incite_cost
Definition comments.c:75
struct unit * actor_unit
Definition dialogs_g.h:55
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
Definition dialogs_g.h:74
struct unit struct city * target_city
Definition dialogs_g.h:56
int Tech_type_id
Definition fc_types.h:377
static const int bufsz
Definition helpdlg.c:70
Definition city.h:320
Definition tile.h:50
Definition unit.h:138
const char * get_government_tooltip(void)
Definition text.c:1478
const char * text_happiness_cities(const struct city *pcity)
Definition text.c:1900
const char * text_happiness_nationality(const struct city *pcity)
Definition text.c:1828
const char * score_tooltip(const struct player *pplayer, int score)
Definition text.c:2126
const char * text_happiness_wonders(const struct city *pcity)
Definition text.c:1870
bool get_units_upgrade_info(char *buf, size_t bufsz, struct unit_list *punits)
Definition text.c:1257
bool get_units_disband_info(char *buf, size_t bufsz, struct unit_list *punits)
Definition text.c:1323
const char * get_airlift_text(const struct unit_list *punits, const struct city *pdest)
Definition text.c:545
const char * get_info_label_text_popup(void)
Definition text.c:969
const char * text_happiness_units(const struct city *pcity)
Definition text.c:2034
const char * text_happiness_luxuries(const struct city *pcity)
Definition text.c:2072
const char * science_dialog_text(void)
Definition text.c:741
const char * text_happiness_buildings(const struct city *pcity)
Definition text.c:1800
const char * get_ping_time_text(const struct player *pplayer)
Definition text.c:1621
const char * get_report_title(const char *report_name)
Definition text.c:1672
const char * get_nuclear_winter_tooltip(void)
Definition text.c:1451
const char * get_score_text(const struct player *pplayer)
Definition text.c:1650
const char * get_science_target_text(double *percent)
Definition text.c:820
const char * get_bulb_tooltip(void)
Definition text.c:1367
const char * get_timeout_label_text(void)
Definition text.c:1557
const char * get_nearest_city_text(struct city *pcity, int sq_dist)
Definition text.c:441
const char * get_act_sel_action_custom_text(struct action *paction, const struct act_prob prob, const struct unit *actor_unit, const struct city *target_city)
Definition text.c:1710
const char * popup_info_text(struct tile *ptile)
Definition text.c:147
const char * unit_description(struct unit *punit)
Definition text.c:475
const char * get_global_warming_tooltip(void)
Definition text.c:1424
const char * get_tile_output_text(const struct tile *ptile)
Definition text.c:63
const char * get_info_label_text(bool moreinfo)
Definition text.c:917
const char * production_help(const struct universal *uni, char *buf, size_t bufsize)
Definition text.c:2089
const char * get_science_goal_text(Tech_type_id goal)
Definition text.c:866
const char * get_unit_info_label_text2(struct unit_list *punits, int linebreaks)
Definition text.c:1079
const char * get_unit_info_label_text1(struct unit_list *punits)
Definition text.c:1054
const char * get_spaceship_descr(struct player_spaceship *pship)
Definition text.c:1500
const char * act_sel_action_tool_tip(const struct action *paction, const struct act_prob prob)
Definition text.c:1789