diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-07 23:06:43 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-07 23:32:29 +0100 |
commit | 92dc9315b9bb8576373b1f2325a049dd5490a9f6 (patch) | |
tree | bfcf7ed35d786444a035f33904d817e041311913 /constantes.h | |
parent | 8218792cbbd00da3530826330270a20906fefad5 (diff) |
generate the affinities during the creation of the characters
do not differenciate between the players and the enemies as well
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'constantes.h')
-rw-r--r-- | constantes.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/constantes.h b/constantes.h index 1178eca..7e3d7da 100644 --- a/constantes.h +++ b/constantes.h @@ -44,6 +44,15 @@ enum character_class_t { #define SOIN 0 //caractéristiques +enum affinity_t { + AFFINITY_ABSORPTION, + AFFINITY_INVULNERABILITY, + AFFINITY_RESISTANCE, + AFFINITY_NONE, + AFFINITY_SENSITIVE, + + AFFINITY_COUNT, +}; #define SENSIBILITE 1 #define RESISTANCE 2 #define INVULNERABILITE 3 @@ -205,6 +214,8 @@ else\ }\ break; +#define countof(_array) ((int)(sizeof((_array)) / sizeof((_array)[0]))) + #include <stdbool.h> #define inverse_boolean(_b) ((_b) = (((_b)) ? false : true)) |