Freeciv-3.1
Loading...
Searching...
No Matches
ai
default
daieffects.h
Go to the documentation of this file.
1
/***********************************************************************
2
Freeciv - Copyright (C) 2002 - The Freeciv Project
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__DAI_EFFECTS_H
14
#define FC__DAI_EFFECTS_H
15
16
adv_want
dai_effect_value
(
struct
player
*pplayer,
17
const
struct
adv_data
*adv,
const
struct
city
*pcity,
18
const
bool
capital,
int
turns,
19
const
struct
effect
*peffect,
const
int
c,
20
const
int
nplayers);
21
22
adv_want
dai_content_effect_value
(
const
struct
player
*pplayer,
23
const
struct
city
*pcity,
24
int
amount,
25
int
num_cities,
26
int
happiness_step);
27
28
bool
dai_can_requirement_be_met_in_city
(
const
struct
requirement
*preq,
29
const
struct
player
*pplayer,
30
const
struct
city
*pcity);
31
32
#endif
/* FC__DAI_EFFECTS_H */
dai_can_requirement_be_met_in_city
bool dai_can_requirement_be_met_in_city(const struct requirement *preq, const struct player *pplayer, const struct city *pcity)
Definition
daieffects.c:718
dai_effect_value
adv_want dai_effect_value(struct player *pplayer, const struct adv_data *adv, const struct city *pcity, const bool capital, int turns, const struct effect *peffect, const int c, const int nplayers)
Definition
daieffects.c:138
dai_content_effect_value
adv_want dai_content_effect_value(const struct player *pplayer, const struct city *pcity, int amount, int num_cities, int happiness_step)
Definition
daieffects.c:77
adv_want
float adv_want
Definition
fc_types.h:1206
adv_data
Definition
advdata.h:45
city
Definition
city.h:309
effect
Definition
effects.h:340
player
Definition
player.h:249
requirement
Definition
requirements.h:80
Generated on Sun Jan 5 2025 22:00:32 for Freeciv-3.1 by
1.9.8