1 /**********************************************************************
2  Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
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__TRAITS_H
14 #define FC__TRAITS_H
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */
19 
20 #define SPECENUM_NAME trait
21 #define SPECENUM_VALUE0 TRAIT_EXPANSIONIST
22 #define SPECENUM_VALUE0NAME "Expansionist"
23 #define SPECENUM_VALUE1 TRAIT_TRADER
24 #define SPECENUM_VALUE1NAME "Trader"
25 #define SPECENUM_VALUE2 TRAIT_AGGRESSIVE
26 #define SPECENUM_VALUE2NAME "Aggressive"
27 #define SPECENUM_COUNT TRAIT_COUNT
28 #include "specenum_gen.h"
29 
30 #define TRAIT_DEFAULT_VALUE 50
31 #define TRAIT_MAX_VALUE (TRAIT_DEFAULT_VALUE * TRAIT_DEFAULT_VALUE)
32 #define TRAIT_MAX_VALUE_SR (TRAIT_DEFAULT_VALUE)
33 
34 struct ai_trait
35 {
36   int val;   /* Value assigned in the beginning */
37   int mod;   /* This is modification that changes during game. */
38 };
39 
40 struct trait_limits
41 {
42   int min;
43   int max;
44   int fixed;
45 };
46 
47 #ifdef __cplusplus
48 }
49 #endif /* __cplusplus */
50 
51 #endif  /* FC__TRAITS_H */
52