blob: daa1e5d70ccf1431001d3d1d841fa735bd530f32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef ENTRY_H
#define ENTRY_H
#include "structures.h"
#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;
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 character_t *src;
};
#endif /* ENTRY_H */
|