Freeciv21
Develop your civilization from humble roots to a global empire
report.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  __ __ part of Freeciv21. Freeciv21 is free software: you can
4 / \\..// \ redistribute it and/or modify it under the terms of the GNU
5  ( oo ) General Public License as published by the Free Software
6  \__/ Foundation, either version 3 of the License, or (at your
7  option) any later version. You should have received
8  a copy of the GNU General Public License along with Freeciv21. If not,
9  see https://www.gnu.org/licenses/.
10 **************************************************************************/
11 #pragma once
12 
13 #include "support.h" // bool type
14 
15 struct connection;
16 struct conn_list;
17 
18 #define REPORT_TITLESIZE 1024
19 #define REPORT_BODYSIZE (128 * MAX_NUM_PLAYER_SLOTS)
20 
22  int turn;
25 };
26 
27 void page_conn(struct conn_list *dest, const char *caption,
28  const char *headline, const char *lines);
29 
30 void log_civ_score_init();
31 void log_civ_score_free();
32 void log_civ_score_now();
33 
34 void make_history_report();
35 void send_current_history_report(struct conn_list *dest);
36 void report_wonders_of_the_world(struct conn_list *dest);
37 void report_top_five_cities(struct conn_list *dest);
38 bool is_valid_demography(const char *demography, int *error);
39 void report_demographics(struct connection *pconn);
40 void report_achievements(struct connection *pconn);
41 void report_final_scores(struct conn_list *dest);
42 
char * caption
Definition: packhand.cpp:129
char * headline
Definition: packhand.cpp:130
char * lines
Definition: packhand.cpp:131
void report_final_scores(struct conn_list *dest)
Inform clients about player scores and statistics when the game ends.
Definition: report.cpp:1741
void log_civ_score_init()
Initialize score logging system.
Definition: report.cpp:1450
#define REPORT_BODYSIZE
Definition: report.h:19
void send_current_history_report(struct conn_list *dest)
Send history report of this turn.
Definition: report.cpp:323
void report_wonders_of_the_world(struct conn_list *dest)
Send report listing all built and destroyed wonders, and wonders currently being built.
Definition: report.cpp:433
void report_demographics(struct connection *pconn)
Send demographics report; what gets reported depends on value of demographics server option.
Definition: report.cpp:1175
void make_history_report()
Produce random history report if it's time for one.
Definition: report.cpp:1718
void report_top_five_cities(struct conn_list *dest)
Send report listing the "best" 5 cities in the world.
Definition: report.cpp:354
bool is_valid_demography(const char *demography, int *error)
Verify that a given demography string is valid.
Definition: report.cpp:1128
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: report.cpp:1822
void log_civ_score_free()
Free resources allocated for score logging system.
Definition: report.cpp:1474
void report_achievements(struct connection *pconn)
Send achievements list.
Definition: report.cpp:1237
#define REPORT_TITLESIZE
Definition: report.h:18
void log_civ_score_now()
Create a log file of the civilizations so you can see what was happening.
Definition: report.cpp:1505
struct history_report * history_report_get()
Return current history report.
Definition: report.cpp:1877
char title[REPORT_TITLESIZE]
Definition: report.h:23
char body[REPORT_BODYSIZE]
Definition: report.h:24