Freeciv21
Develop your civilization from humble roots to a global empire
advtools.h
Go to the documentation of this file.
1
/**************************************************************************
2
Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3
__ __ part of Freeciv21. Freeciv21 is free software: you can
4
/ \\..// \ redistribute it and/or modify it under the terms of the GNU
5
( oo ) General Public License as published by the Free Software
6
\__/ Foundation, either version 3 of the License, or (at your
7
option) any later version. You should have received
8
a copy of the GNU General Public License along with Freeciv21. If not,
9
see https://www.gnu.org/licenses/.
10
**************************************************************************/
11
#pragma once
12
13
// common
14
#include "
fc_types.h
"
15
16
#define MORT 24
17
18
adv_want
amortize
(
adv_want
benefit,
int
delay);
19
20
/*
21
* To prevent integer overflows the product "power * hp * firepower"
22
* is divided by POWER_DIVIDER.
23
*
24
*/
25
#define POWER_DIVIDER (POWER_FACTOR * 3)
amortize
adv_want amortize(adv_want benefit, int delay)
Amortize means gradually paying off a cost or debt over time.
Definition:
advtools.cpp:25
fc_types.h
adv_want
float adv_want
Definition:
fc_types.h:1144
server
advisors
advtools.h
Generated by
1.9.1