From 2a76d0662f9494f8469283a7b0fc72c17f40ecf6 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 9 Jan 2015 18:31:29 +0100 Subject: implement a way to define who is targetable by an action we can specify who are the targets of an action by setting the field entry->action.target it can be a combination of one or more specifiers, such as: one team an eneny self everyone Signed-off-by: Olivier Gayot --- entry.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'entry.h') diff --git a/entry.h b/entry.h index 9ba9677..7258569 100644 --- a/entry.h +++ b/entry.h @@ -15,7 +15,9 @@ struct entry_t { struct { void *data; void (*f)(SURFACES *, POSITIONS *, struct character_t *, struct character_t *, void *data); - }; + + enum target_t target; + } action; }; }; -- cgit v1.2.3