29 const struct player *them);
31 const struct player *them);
73 #define MAX_NUM_PRODUCTION_TARGETS (U_LAST + B_LAST)
75 struct item *items,
bool show_cost,
78 struct city **selected_cities,
79 int num_selected_cities,
bool append_units,
80 bool append_wonders,
bool change_prod,
89 enum event_type
event,
int turn,
int phase,
int conn_id);
91 const struct ft_color color,
const char *format, ...)
99 enum unit_activity activity,
const char * get_vision_status(const struct player *me, const struct player *them)
Return a string indicating one nation's shaed vision status with another.
int collect_eventually_buildable_targets(struct universal *targets, struct city *pcity, bool advanced_tech)
Collect the cids of all targets which can be build by this city or in general.
void client_player_maps_reset()
Reset the private maps of all players.
bool city_unit_supported(const struct city *pcity, const struct universal *target)
Return TRUE if the city supports at least one unit of the given production type (returns FALSE if the...
cid cid_encode_building(const struct impr_type *pimprove)
Encode a CID for the target building.
struct universal cid_decode(cid cid)
Decode the CID into a city_production structure.
void client_player_init(struct player *pplayer)
Initialize a player on the client side.
const QPixmap * client_government_sprite()
Return the sprite for the government indicator.
void client_remove_city(struct city *pcity)
Remove city, client end version.
void client_unit_init_act_prob_cache(struct unit *punit)
Initialize the action probability cache.
void nuclear_winter_scaled(int *chance, int *rate, int max)
Return nuclear winter chance and rate of change, scaled to max.
bool mapimg_client_define()
Create a map image definition on the client.
void struct city * get_nearest_city(const struct unit *punit, int *sq_dist)
Find city nearest to given unit and optionally return squared city distance Parameter sq_dist may be ...
void name_and_sort_items(struct universal *targets, int num_items, struct item *items, bool show_cost, struct city *pcity)
Takes an array of compound ids (cids).
const QPixmap * client_research_sprite()
Return the sprite for the research indicator.
void cityrep_buy(struct city *pcity)
Called when the "Buy" button is pressed in the city report for every selected city.
void global_warming_scaled(int *chance, int *rate, int max)
Return global warming chance and rate of change, scaled to max.
struct nation_set * client_current_nation_set()
Returns the nation set in use.
bool(* TestCityFunc)(const struct city *, const struct universal *)
void create_event(struct tile *ptile, enum event_type event, const struct ft_color color, const char *format,...) fc__attribute((__format__(__printf__
cid cid_encode(struct universal target)
Encode a CID for the target production.
void client_remove_unit(struct unit *punit)
Remove unit, client end version.
bool can_units_do_connect(const std::vector< unit * > &units, enum unit_activity activity, struct extra_type *tgt)
Returns TRUE if any of the units can do the connect activity.
bool city_building_present(const struct city *pcity, const struct universal *target)
A TestCityFunc to tell whether the item is a building and is present.
int collect_already_built_targets(struct universal *targets, struct city *pcity)
Collect the cids of all improvements which are built in the given city.
void center_on_something()
Find something sensible to display.
enum ai_level server_ai_level()
Returns the current AI skill level on the server, if the same level is currently used for all current...
void unit_focus_set_status(struct player *pplayer)
Set focus status of all player units to FOCUS_AVAIL.
void handle_event(const char *featured_text, struct tile *ptile, enum event_type event, int turn, int phase, int conn_id)
Handles a chat or event message.
cid cid_encode_unit(const struct unit_type *punittype)
Encode a CID for the target unit type.
void client_diplomacy_clause_string(char *buf, int bufsiz, struct Clause *pclause)
Copy a string that describes the given clause into the return buffer.
const QPixmap * client_warming_sprite()
Return the sprite for the global-warming indicator.
const QPixmap * client_cooling_sprite()
Return the sprite for the global-cooling indicator.
bool city_unit_present(const struct city *pcity, const struct universal *target)
Return TRUE if the city has present at least one unit of the given production type (returns FALSE if ...
const char * get_embassy_status(const struct player *me, const struct player *them)
Return a string indicating one nation's embassy status with another.
int collect_production_targets(struct universal *targets, struct city **selected_cities, int num_selected_cities, bool append_units, bool append_wonders, bool change_prod, TestCityFunc test_func)
Return possible production targets for the current player's cities.
char descr[MAX_LEN_NAME+40]
Functions for handling the nations.
int fc__attribute((nonnull(1, 3)))