From b4038deb223e309fe886c71b3765a7e82e65f9bb Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 9 Jan 2015 21:05:46 +0100 Subject: handle the different type of targets Signed-off-by: Olivier Gayot --- actions.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'actions.h') diff --git a/actions.h b/actions.h index 425b5a9..b7a4f09 100644 --- a/actions.h +++ b/actions.h @@ -3,11 +3,12 @@ #include "structures.h" #include "players.h" +#include "target.h" -void attack(SURFACES *, POSITIONS *, struct character_t *src, struct character_t *dst, void *data); -void cast_element(SURFACES *, POSITIONS *, struct character_t *src, struct character_t *dst, void *data); -void cast_cure(SURFACES *, POSITIONS *, struct character_t *src, struct character_t *dst, void *data); -void use_potion(SURFACES *, POSITIONS *, struct character_t *src, struct character_t *dst, void *data); -void use_ether(SURFACES *, POSITIONS *, struct character_t *src, struct character_t *dst, void *data); +void attack(SURFACES *, POSITIONS *, struct character_t *src, struct target_t *dst, void *data); +void cast_element(SURFACES *, POSITIONS *, struct character_t *src, struct target_t *dst, void *data); +void cast_cure(SURFACES *, POSITIONS *, struct character_t *src, struct target_t *dst, void *data); +void use_potion(SURFACES *, POSITIONS *, struct character_t *src, struct target_t *dst, void *data); +void use_ether(SURFACES *, POSITIONS *, struct character_t *src, struct target_t *dst, void *data); #endif /* ACTIONS_H */ -- cgit v1.2.3