From 92dc9315b9bb8576373b1f2325a049dd5490a9f6 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 7 Jan 2015 23:06:43 +0100 Subject: 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 --- constantes.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'constantes.h') 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 #define inverse_boolean(_b) ((_b) = (((_b)) ? false : true)) -- cgit v1.2.3