Freeciv-3.1
|
#include "support.h"
Go to the source code of this file.
Data Structures | |
struct | history_report |
Macros | |
#define | REPORT_TITLESIZE 1024 |
#define | REPORT_BODYSIZE (128 * MAX_NUM_PLAYER_SLOTS) |
Functions | |
void | page_conn (struct conn_list *dest, const char *caption, const char *headline, const char *lines) |
void | log_civ_score_init (void) |
void | log_civ_score_free (void) |
void | log_civ_score_now (void) |
void | make_history_report (void) |
void | send_current_history_report (struct conn_list *dest) |
void | report_wonders_of_the_world (struct conn_list *dest) |
void | report_top_five_cities (struct conn_list *dest) |
bool | is_valid_demography (const char *demography, int *error) |
void | report_demographics (struct connection *pconn) |
void | report_achievements (struct connection *pconn) |
void | report_final_scores (struct conn_list *dest) |
struct history_report * | history_report_get (void) |
#define REPORT_BODYSIZE (128 * MAX_NUM_PLAYER_SLOTS) |
struct history_report * history_report_get | ( | void | ) |
Return current history report
Definition at line 1689 of file report.c.
Referenced by sg_load_history(), sg_load_history(), and sg_save_history().
bool is_valid_demography | ( | const char * | demography, |
int * | error | ||
) |
Verify that a given demography string is valid. See game.demography. If the string is not valid the index of the first invalid character is return as 'error'.
Other settings callback functions are in settings.c, but this one uses static values from this file so it's done separately.
Definition at line 946 of file report.c.
Referenced by demography_callback().
void log_civ_score_free | ( | void | ) |
Free resources allocated for score logging system
Definition at line 1302 of file report.c.
Referenced by log_civ_score_now(), scorelog_action(), and server_game_free().
void log_civ_score_init | ( | void | ) |
Initialize score logging system
Definition at line 1279 of file report.c.
Referenced by scorelog_action().
void log_civ_score_now | ( | void | ) |
Create a log file of the civilizations so you can see what was happening.
Definition at line 1332 of file report.c.
Referenced by begin_turn(), and srv_scores().
void make_history_report | ( | void | ) |
Produce random history report if it's time for one.
Definition at line 1533 of file report.c.
Referenced by end_turn().
void page_conn | ( | struct conn_list * | dest, |
const char * | caption, | ||
const char * | headline, | ||
const char * | lines | ||
) |
This function pops up a non-modal message dialog on the player's desktop
Definition at line 1634 of file report.c.
Referenced by report_achievements(), report_demographics(), report_top_five_cities(), and report_wonders_of_the_world().
void report_achievements | ( | struct connection * | pconn | ) |
void report_demographics | ( | struct connection * | pconn | ) |
Send demographics report; what gets reported depends on value of demographics server option.
Definition at line 993 of file report.c.
Referenced by handle_report_req().
void report_final_scores | ( | struct conn_list * | dest | ) |
Inform clients about player scores and statistics when the game ends. Called only from server/srv_main.c srv_scores()
Definition at line 1555 of file report.c.
Referenced by connection_attach_real(), and srv_scores().
void report_top_five_cities | ( | struct conn_list * | dest | ) |
Send report listing the "best" 5 cities in the world.
Definition at line 327 of file report.c.
Referenced by handle_report_req().
void report_wonders_of_the_world | ( | struct conn_list * | dest | ) |
Send report listing all built and destroyed wonders, and wonders currently being built.
Definition at line 401 of file report.c.
Referenced by handle_report_req().
void send_current_history_report | ( | struct conn_list * | dest | ) |
Send history report of this turn.
Definition at line 298 of file report.c.
Referenced by establish_new_connection(), and make_history_report().