diff options
Diffstat (limited to 'entry.h')
-rw-r--r-- | entry.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -5,6 +5,13 @@ #include "players.h" #include "target.h" +struct action_t { + void *data; + void (*f)(SURFACES *, POSITIONS *, struct character_t *, struct target_t *, void *data); + + enum target_type_t target; +}; + struct entry_t { /* displayed name */ char *name; @@ -13,12 +20,7 @@ struct entry_t { union { struct entry_t *children; - struct { - void *data; - void (*f)(SURFACES *, POSITIONS *, struct character_t *, struct target_t *, void *data); - - enum target_type_t target; - } action; + struct action_t action; }; }; |