From b4038deb223e309fe886c71b3765a7e82e65f9bb Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 9 Jan 2015 21:05:46 +0100 Subject: handle the different type of targets Signed-off-by: Olivier Gayot --- entry.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'entry.h') diff --git a/entry.h b/entry.h index 7258569..db81e47 100644 --- a/entry.h +++ b/entry.h @@ -3,6 +3,7 @@ #include "structures.h" #include "players.h" +#include "target.h" struct entry_t { /* displayed name */ @@ -14,9 +15,9 @@ struct entry_t { struct { void *data; - void (*f)(SURFACES *, POSITIONS *, struct character_t *, struct character_t *, void *data); + void (*f)(SURFACES *, POSITIONS *, struct character_t *, struct target_t *, void *data); - enum target_t target; + enum target_type_t target; } action; }; }; -- cgit v1.2.3