summaryrefslogtreecommitdiff
path: root/jouer.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-09 17:40:02 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-09 17:42:32 +0100
commitdfe9604dc9e4292c9f0e420d3a926e8268178308 (patch)
treee72126bed8102a0852fe8f45fe3b980bdbf41a13 /jouer.c
parent2c26f3577680ae1ee1989de0f866d4fec912f49d (diff)
replace the code of the artificial "intellligence"
the new function of the AI chooses a random target in the adversary team and use "attack" on it. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'jouer.c')
-rw-r--r--jouer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/jouer.c b/jouer.c
index 48be23b..5050a29 100644
--- a/jouer.c
+++ b/jouer.c
@@ -2,6 +2,7 @@
#include "structures.h"
#include "constantes.h"
+#include "ai.h"
#include "blits.h"
#include "priv_entries.h"
@@ -237,9 +238,7 @@ static enum action_state_t character_play_turn(struct action_params_t *params)
return dig_entry(action_entries_g, countof(action_entries_g), params);
}
-#if 0
- Factionennemi(&Vtourennemi,surfaces,positions,ennemis,persos,Vnbennemis,&Vtour,Vtourallie);
-#endif
+ ai_play_turn(params);
return ACTION_PERFORMED;
}