diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-09 21:05:46 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-09 21:06:03 +0100 |
commit | b4038deb223e309fe886c71b3765a7e82e65f9bb (patch) | |
tree | cf259313fc52a280400b6c1811e2eadb4e1a1bbf /entry.h | |
parent | 2a76d0662f9494f8469283a7b0fc72c17f40ecf6 (diff) |
handle the different type of targets
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'entry.h')
-rw-r--r-- | entry.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; }; }; |