Freeciv-3.1: /fast/freeciv/nightly/S3_1/common/victory.c Source File

Freeciv-3.1

Loading...
Searching...
No Matches
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}
victory_condition_type
victory_condition_type
Definition fc_types.h:1122
game
struct civ_game game
Definition game.c:57
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:223
victory_enabled
bool victory_enabled(enum victory_condition_type victory)
Definition victory.c:26
victory.h