diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-09 18:31:29 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-09 18:39:01 +0100 |
commit | 2a76d0662f9494f8469283a7b0fc72c17f40ecf6 (patch) | |
tree | 8420a57e6029a5d62a31343a13b51acbeb3e7d60 /entry.h | |
parent | dfe9604dc9e4292c9f0e420d3a926e8268178308 (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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; }; }; |