Freeciv21
Develop your civilization from humble roots to a global empire
victory.cpp
Go to the documentation of this file.
1
/*
2
_ ._ Copyright (c) 1996-2021 Freeciv21 and Freeciv contributors.
3
\ | This file is part of Freeciv21. Freeciv21 is free software: you
4
\_| can redistribute it and/or modify it under the terms of the
5
.' '. GNU General Public License as published by the Free
6
:O O: Software Foundation, either version 3 of the License,
7
'/ \' or (at your option) any later version. You should have
8
:X: received a copy of the GNU General Public License along with
9
:X: Freeciv21. If not, see https://www.gnu.org/licenses/.
10
*/
11
12
// common
13
#include "
game.h
"
14
15
#include "
victory.h
"
16
20
bool
victory_enabled
(
enum
victory_condition_type
victory)
21
{
22
return
(
game
.
info
.victory_conditions & (1 << victory));
23
}
victory_condition_type
victory_condition_type
Definition:
fc_types.h:1083
game
struct civ_game game
Definition:
game.cpp:47
game.h
civ_game::info
struct packet_game_info info
Definition:
game.h:80
victory_enabled
bool victory_enabled(enum victory_condition_type victory)
Whether victory condition is enabled.
Definition:
victory.cpp:20
victory.h
common
victory.cpp
Generated by
1.9.1