Freeciv-3.1: /fast/freeciv/nightly/S3_1/server/report.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
report.h
Go to the documentation of this file.
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.
7
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
15
16#include "support.h" /* bool type */
17
18struct connection;
19struct conn_list;
20
21#define REPORT_TITLESIZE 1024
22#define REPORT_BODYSIZE (128 * MAX_NUM_PLAYER_SLOTS)
23
24 struct history_report
25{
26 int turn;
27 char title[REPORT_TITLESIZE];
28 char body[REPORT_BODYSIZE];
29};
30
31void page_conn(struct conn_list *dest, const char *caption,
32 const char *headline, const char *lines);
33
34void log_civ_score_init(void);
35void log_civ_score_free(void);
36void log_civ_score_now(void);
37
38void make_history_report(void);
39void send_current_history_report(struct conn_list *dest);
40void report_wonders_of_the_world(struct conn_list *dest);
41void report_top_five_cities(struct conn_list *dest);
42bool is_valid_demography(const char *demography, int *error);
43void report_demographics(struct connection *pconn);
44void report_achievements(struct connection *pconn);
45void report_final_scores(struct conn_list *dest);
46
47struct history_report *history_report_get(void);
48
49#endif /* FC__REPORT_H */
caption
const char * caption
Definition dialogs_g.h:36
headline
const char const char * headline
Definition dialogs_g.h:37
lines
char * lines
Definition packhand.c:129
report_final_scores
void report_final_scores(struct conn_list *dest)
Definition report.c:1555
REPORT_BODYSIZE
#define REPORT_BODYSIZE
Definition report.h:22
send_current_history_report
void send_current_history_report(struct conn_list *dest)
Definition report.c:298
report_wonders_of_the_world
void report_wonders_of_the_world(struct conn_list *dest)
Definition report.c:401
report_demographics
void report_demographics(struct connection *pconn)
Definition report.c:993
history_report_get
struct history_report * history_report_get(void)
Definition report.c:1689
report_top_five_cities
void report_top_five_cities(struct conn_list *dest)
Definition report.c:327
make_history_report
void make_history_report(void)
Definition report.c:1533
log_civ_score_free
void log_civ_score_free(void)
Definition report.c:1302
is_valid_demography
bool is_valid_demography(const char *demography, int *error)
Definition report.c:946
page_conn
void page_conn(struct conn_list *dest, const char *caption, const char *headline, const char *lines)
Definition report.c:1634
log_civ_score_init
void log_civ_score_init(void)
Definition report.c:1279
report_achievements
void report_achievements(struct connection *pconn)
Definition report.c:1057
REPORT_TITLESIZE
#define REPORT_TITLESIZE
Definition report.h:21
log_civ_score_now
void log_civ_score_now(void)
Definition report.c:1332
connection
Definition connection.h:141
history_report
Definition report.h:25
history_report::title
char title[REPORT_TITLESIZE]
Definition report.h:27
history_report::body
char body[REPORT_BODYSIZE]
Definition report.h:28
history_report::turn
int turn
Definition report.h:26
support.h