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
common
victory.c
Go to the documentation of this file.
1
/****************************************************************************
2
Freeciv - Copyright (C) 2004 - The Freeciv Team
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
14
#ifdef HAVE_CONFIG_H
15
#include <fc_config.h>
16
#endif
17
18
/* common */
19
#include "
game.h
"
20
21
#include "
victory.h
"
22
23
/************************************************************************/
26
bool
victory_enabled
(
enum
victory_condition_type
victory
)
27
{
28
return
(
game
.
info
.
victory_conditions
& (1 <<
victory
));
29
}
26
bool
victory_enabled
(
enum
victory_condition_type
victory
) {
…
}
BODYGUARD_NONE
@ BODYGUARD_NONE
Definition
aiguard.c:37
victory_condition_type
victory_condition_type
Definition
fc_types.h:978
game
struct civ_game game
Definition
game.c:61
game.h
civ_game::info
struct packet_game_info info
Definition
game.h:89
packet_game_info::victory_conditions
enum victory_condition_type victory_conditions
Definition
packets_gen.h:227
victory_enabled
bool victory_enabled(enum victory_condition_type victory)
Definition
victory.c:26
victory.h
Generated on Sun Mar 9 2025 22:30:14 for Freeciv-3.4 by
1.9.8