#ifndef ENTRY_H #define ENTRY_H #include "structures.h" #include "players.h" #include "target.h" typedef void (*action_f)(SURFACES *, POSITIONS *, struct chr_t *src, struct target_t *, void *data); struct action_t { void *data; action_f f; enum target_type_t target; }; struct entry_t { /* displayed name */ char *name; int children_cnt; union { struct entry_t *children; struct action_t action; }; }; struct action_params_t { SURFACES *surfaces; POSITIONS *positions; struct team_t *t1; struct team_t *t2; struct chr_t *src; }; #endif /* ENTRY_H */