Stop sharing requirement_unit_state_ereq().
[freeciv.git] / common / traits.h
blob73b9bed5d4e3801a147bb6d6a603aae309803952
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.
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
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */
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"
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)
34 struct ai_trait
36 int val; /* Value assigned in the beginning */
37 int mod; /* This is modification that changes during game. */
40 struct trait_limits
42 int min;
43 int max;
44 int fixed;
47 #ifdef __cplusplus
49 #endif /* __cplusplus */
51 #endif /* FC__TRAITS_H */