summaryrefslogtreecommitdiff
path: root/entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'entry.h')
-rw-r--r--entry.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/entry.h b/entry.h
index daa1e5d..aa66d95 100644
--- a/entry.h
+++ b/entry.h
@@ -5,9 +5,12 @@
#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;
- void (*f)(SURFACES *, POSITIONS *, struct character_t *, struct target_t *, void *data);
+ action_f f;
enum target_type_t target;
};
@@ -31,7 +34,7 @@ struct action_params_t {
struct team_t *t1;
struct team_t *t2;
- struct character_t *src;
+ struct chr_t *src;
};
#endif /* ENTRY_H */