Freeciv21
Develop your civilization from humble roots to a global empire
traits.h
Go to the documentation of this file.
1 /*__ ___ ***************************************
2 / \ / \ Copyright (c) 1996-2020 Freeciv21 and Freeciv
3 \_ \ / __/ contributors. This file is part of Freeciv21.
4  _\ \ / /__ Freeciv21 is free software: you can redistribute it
5  \___ \____/ __/ and/or modify it under the terms of the GNU General
6  \_ _/ Public License as published by the Free Software
7  | @ @ \_ Foundation, either version 3 of the License,
8  | or (at your option) any later version.
9  _/ /\ You should have received a copy of the GNU
10  /o) (o/\ \_ General Public License along with Freeciv21.
11  \_____/ / If not, see https://www.gnu.org/licenses/.
12  \____/ ********************************************************/
13 #pragma once
14 
15 #define SPECENUM_NAME trait
16 #define SPECENUM_VALUE0 TRAIT_EXPANSIONIST
17 #define SPECENUM_VALUE0NAME "Expansionist"
18 #define SPECENUM_VALUE1 TRAIT_TRADER
19 #define SPECENUM_VALUE1NAME "Trader"
20 #define SPECENUM_VALUE2 TRAIT_AGGRESSIVE
21 #define SPECENUM_VALUE2NAME "Aggressive"
22 #define SPECENUM_VALUE3 TRAIT_BUILDER
23 #define SPECENUM_VALUE3NAME "Builder"
24 #define SPECENUM_COUNT TRAIT_COUNT
25 #include "specenum_gen.h"
26 
27 #define TRAIT_DEFAULT_VALUE 50
28 #define TRAIT_MAX_VALUE (TRAIT_DEFAULT_VALUE * TRAIT_DEFAULT_VALUE)
29 #define TRAIT_MAX_VALUE_SR (TRAIT_DEFAULT_VALUE)
30 
31 struct ai_trait {
32  int val; // Value assigned in the beginning
33  int mod; // This is modification that changes during game.
34 };
35 
36 struct trait_limits {
37  int min;
38  int max;
39  int fixed;
40 };
int val
Definition: traits.h:32
int mod
Definition: traits.h:33
int fixed
Definition: traits.h:39
int min
Definition: traits.h:37
int max
Definition: traits.h:38