summaryrefslogtreecommitdiff
path: root/entry.h
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-09 18:31:29 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-09 18:39:01 +0100
commit2a76d0662f9494f8469283a7b0fc72c17f40ecf6 (patch)
tree8420a57e6029a5d62a31343a13b51acbeb3e7d60 /entry.h
parentdfe9604dc9e4292c9f0e420d3a926e8268178308 (diff)
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 <duskcoder@gmail.com>
Diffstat (limited to 'entry.h')
-rw-r--r--entry.h4
1 files changed, 3 insertions, 1 deletions
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;
};
};