Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/text.h Source File

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
56const char *get_act_sel_action_custom_text(struct action *paction,
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 */
incite_cost
char * incite_cost
Definition comments.c:74
actor_unit
struct unit * actor_unit
Definition dialogs_g.h:55
punit
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
target_city
struct unit struct city * target_city
Definition dialogs_g.h:56
fc_types.h
Tech_type_id
int Tech_type_id
Definition fc_types.h:380
bufsz
static const int bufsz
Definition helpdlg.c:70
act_prob
Definition fc_types.h:1241
action
Definition actions.h:360
city
Definition city.h:320
player_spaceship
Definition spaceship.h:94
player
Definition player.h:247
tile
Definition tile.h:50
unit
Definition unit.h:138
universal
Definition fc_types.h:901
get_government_tooltip
const char * get_government_tooltip(void)
Definition text.c:1478
text_happiness_cities
const char * text_happiness_cities(const struct city *pcity)
Definition text.c:1900
text_happiness_nationality
const char * text_happiness_nationality(const struct city *pcity)
Definition text.c:1828
score_tooltip
const char * score_tooltip(const struct player *pplayer, int score)
Definition text.c:2126
text_happiness_wonders
const char * text_happiness_wonders(const struct city *pcity)
Definition text.c:1870
get_units_upgrade_info
bool get_units_upgrade_info(char *buf, size_t bufsz, struct unit_list *punits)
Definition text.c:1257
get_units_disband_info
bool get_units_disband_info(char *buf, size_t bufsz, struct unit_list *punits)
Definition text.c:1323
get_airlift_text
const char * get_airlift_text(const struct unit_list *punits, const struct city *pdest)
Definition text.c:545
get_info_label_text_popup
const char * get_info_label_text_popup(void)
Definition text.c:969
text_happiness_units
const char * text_happiness_units(const struct city *pcity)
Definition text.c:2034
text_happiness_luxuries
const char * text_happiness_luxuries(const struct city *pcity)
Definition text.c:2072
science_dialog_text
const char * science_dialog_text(void)
Definition text.c:741
text_happiness_buildings
const char * text_happiness_buildings(const struct city *pcity)
Definition text.c:1800
get_ping_time_text
const char * get_ping_time_text(const struct player *pplayer)
Definition text.c:1621
get_report_title
const char * get_report_title(const char *report_name)
Definition text.c:1672
get_nuclear_winter_tooltip
const char * get_nuclear_winter_tooltip(void)
Definition text.c:1451
get_score_text
const char * get_score_text(const struct player *pplayer)
Definition text.c:1650
get_science_target_text
const char * get_science_target_text(double *percent)
Definition text.c:820
get_bulb_tooltip
const char * get_bulb_tooltip(void)
Definition text.c:1367
get_timeout_label_text
const char * get_timeout_label_text(void)
Definition text.c:1557
get_nearest_city_text
const char * get_nearest_city_text(struct city *pcity, int sq_dist)
Definition text.c:441
get_act_sel_action_custom_text
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
popup_info_text
const char * popup_info_text(struct tile *ptile)
Definition text.c:147
unit_description
const char * unit_description(struct unit *punit)
Definition text.c:475
get_global_warming_tooltip
const char * get_global_warming_tooltip(void)
Definition text.c:1424
get_tile_output_text
const char * get_tile_output_text(const struct tile *ptile)
Definition text.c:63
get_info_label_text
const char * get_info_label_text(bool moreinfo)
Definition text.c:917
production_help
const char * production_help(const struct universal *uni, char *buf, size_t bufsize)
Definition text.c:2089
get_science_goal_text
const char * get_science_goal_text(Tech_type_id goal)
Definition text.c:866
get_unit_info_label_text2
const char * get_unit_info_label_text2(struct unit_list *punits, int linebreaks)
Definition text.c:1079
get_unit_info_label_text1
const char * get_unit_info_label_text1(struct unit_list *punits)
Definition text.c:1054
get_spaceship_descr
const char * get_spaceship_descr(struct player_spaceship *pship)
Definition text.c:1500
act_sel_action_tool_tip
const char * act_sel_action_tool_tip(const struct action *paction, const struct act_prob prob)
Definition text.c:1789
unitlist.h