summaryrefslogtreecommitdiff
path: root/constantes.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 /constantes.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 'constantes.h')
-rw-r--r--constantes.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/constantes.h b/constantes.h
index 36fdf6d..e68946b 100644
--- a/constantes.h
+++ b/constantes.h
@@ -73,6 +73,21 @@ enum action_state_t {
ACTION_COUNT,
};
+enum target_t {
+ TARGET_SINGLE_ALLY = 0x1,
+ TARGET_SINGLE_ENEMY = TARGET_SINGLE_ALLY << 0x1,
+
+ TARGET_TEAM_ALLY = TARGET_SINGLE_ENEMY << 0x1,
+ TARGET_TEAM_ENEMY = TARGET_TEAM_ALLY << 0x1,
+
+ TARGET_SELF = TARGET_TEAM_ENEMY << 0x1,
+
+ TARGET_ALL = TARGET_SELF << 0x1,
+
+ TARGET_SINGLE = TARGET_SINGLE_ALLY | TARGET_SINGLE_ENEMY,
+ TARGET_TEAM = TARGET_TEAM_ALLY | TARGET_TEAM_ENEMY,
+};
+
//map
#define SOL 0
#define MUR 1