Freeciv-3.4
Toggle main menu visibility
Main Page
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
server
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
/* uility */
17
#include "
support.h
"
/* bool type */
18
19
struct
connection
;
20
struct
conn_list
;
21
22
#define REPORT_TITLESIZE 1024
23
#define REPORT_BODYSIZE (128 * MAX_NUM_PLAYER_SLOTS)
24
25
struct
history_report
26
{
27
int
turn
;
28
char
title
[
REPORT_TITLESIZE
];
29
char
body
[
REPORT_BODYSIZE
];
30
};
25
struct
history_report
{
…
};
31
32
void
log_civ_score_init
(
void
);
33
void
log_civ_score_free
(
void
);
34
void
log_civ_score_now
(
void
);
35
36
void
make_history_report
(
void
);
37
void
send_current_history_report
(
struct
conn_list
*dest);
38
void
report_wonders_of_the_world
(
struct
conn_list
*dest);
39
void
report_wonders_of_the_world_long
(
struct
conn_list
*dest);
40
void
report_top_cities
(
struct
conn_list
*dest);
41
bool
is_valid_demography
(
const
char
*demography,
int
*error);
42
void
report_demographics
(
struct
connection
*
pconn
);
43
void
report_achievements
(
struct
connection
*
pconn
);
44
void
report_final_scores
(
struct
conn_list
*dest);
45
int
get_tag_score
(
const
char
*tag,
const
struct
player
*pplayer);
46
47
struct
history_report
*
history_report_get
(
void
);
48
49
#endif
/* FC__REPORT_H */
BODYGUARD_NONE
@ BODYGUARD_NONE
Definition
aiguard.c:37
report_final_scores
void report_final_scores(struct conn_list *dest)
Definition
report.c:1724
REPORT_BODYSIZE
#define REPORT_BODYSIZE
Definition
report.h:23
send_current_history_report
void send_current_history_report(struct conn_list *dest)
Definition
report.c:381
report_wonders_of_the_world
void report_wonders_of_the_world(struct conn_list *dest)
Definition
report.c:604
report_demographics
void report_demographics(struct connection *pconn)
Definition
report.c:1205
report_wonders_of_the_world_long
void report_wonders_of_the_world_long(struct conn_list *dest)
Definition
report.c:493
get_tag_score
int get_tag_score(const char *tag, const struct player *pplayer)
Definition
report.c:1867
history_report_get
struct history_report * history_report_get(void)
Definition
report.c:1859
make_history_report
void make_history_report(void)
Definition
report.c:1702
log_civ_score_free
void log_civ_score_free(void)
Definition
report.c:1514
is_valid_demography
bool is_valid_demography(const char *demography, int *error)
Definition
report.c:1158
report_top_cities
void report_top_cities(struct conn_list *dest)
Definition
report.c:410
log_civ_score_init
void log_civ_score_init(void)
Definition
report.c:1491
report_achievements
void report_achievements(struct connection *pconn)
Definition
report.c:1269
REPORT_TITLESIZE
#define REPORT_TITLESIZE
Definition
report.h:22
log_civ_score_now
void log_civ_score_now(void)
Definition
report.c:1544
connection
Definition
connection.h:136
history_report
Definition
report.h:26
history_report::title
char title[REPORT_TITLESIZE]
Definition
report.h:28
history_report::body
char body[REPORT_BODYSIZE]
Definition
report.h:29
history_report::turn
int turn
Definition
report.h:27
player
Definition
player.h:249
support.h
Generated on Sun Mar 9 2025 22:30:14 for Freeciv-3.4 by
1.9.8