Freeciv-3.3
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
}
incite_cost
char * incite_cost
Definition
comments.c:76
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 Dec 22 2024 22:30:37 for Freeciv-3.3 by
1.9.8