diff options
Diffstat (limited to 'entry.h')
-rw-r--r-- | entry.h | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -0,0 +1,30 @@ +#ifndef ENTRY_H +#define ENTRY_H + +#include "structures.h" +#include "players.h" + +struct entry_t { + /* displayed name */ + char *name; + int children_cnt; + + union { + struct entry_t *children; + + struct { + void *data; + enum action_state_t (*f)(SURFACES *, POSITIONS *, struct team_t *, struct team_t *, void *data); + }; + }; +}; + +struct action_params_t { + SURFACES *surfaces; + POSITIONS *positions; + + struct team_t *t1; + struct team_t *t2; +}; + +#endif /* ENTRY_H */ |