Freeciv-3.2
|
#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 | 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_wonders_of_the_world_long (struct conn_list *dest) |
void | report_top_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 1824 of file report.c.
Referenced by sg_load_history(), sg_load_history(), and sg_save_history().
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 1078 of file report.c.
Referenced by demography_callback().
Free resources allocated for score logging system
Definition at line 1434 of file report.c.
Referenced by log_civ_score_now(), scorelog_action(), and server_game_free().
Initialize score logging system
Definition at line 1411 of file report.c.
Referenced by scorelog_action().
Create a log file of the civilizations so you can see what was happening.
Definition at line 1464 of file report.c.
Referenced by begin_turn(), and srv_scores().
Produce random history report if it's time for one.
Definition at line 1667 of file report.c.
Referenced by end_turn().
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 1125 of file report.c.
Referenced by handle_report_req().
Inform clients about player scores and statistics when the game ends. Called only from server/srv_main.c srv_scores()
Definition at line 1689 of file report.c.
Referenced by connection_attach_real(), and srv_scores().
Send report listing the "best" cities in the world.
Definition at line 331 of file report.c.
Referenced by handle_report_req().
Send report listing all built and destroyed wonders, and wonders currently being built.
Definition at line 525 of file report.c.
Referenced by handle_report_req().
Send report listing all built and destroyed wonders, and wonders currently being built.
Definition at line 414 of file report.c.
Referenced by handle_report_req().
Send history report of this turn.
Definition at line 302 of file report.c.
Referenced by establish_new_connection(), and make_history_report().