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 --- constantes.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'constantes.h') 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 -- cgit v1.2.3