Replaced deprecated gtk_menu_popup() calls with modern constructs in gtk3.22-client
[freeciv.git] / server / report.h
blob3837c7a8b75ef0e29a3be24909e841f66a5b9aa3
1 /**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
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.
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 #ifndef FC__REPORT_H
14 #define FC__REPORT_H
16 #include "support.h" /* bool type */
18 struct connection;
19 struct conn_list;
21 #define REPORT_TITLESIZE 1024
22 #define REPORT_BODYSIZE (128 * MAX_NUM_PLAYER_SLOTS)
24 struct history_report
26 int turn;
27 char title[REPORT_TITLESIZE];
28 char body[REPORT_BODYSIZE];
31 void page_conn(struct conn_list *dest, const char *caption,
32 const char *headline, const char *lines);
34 void log_civ_score_init(void);
35 void log_civ_score_free(void);
36 void log_civ_score_now(void);
38 void make_history_report(void);
39 void send_current_history_report(struct conn_list *dest);
40 void report_wonders_of_the_world(struct conn_list *dest);
41 void report_top_five_cities(struct conn_list *dest);
42 bool is_valid_demography(const char *demography, int *error);
43 void report_demographics(struct connection *pconn);
44 void report_achievements(struct connection *pconn);
45 void report_final_scores(struct conn_list *dest);
47 struct history_report *history_report_get(void);
49 #endif /* FC__REPORT_H */