From e8b35eae36f56492069d8f242c078ec5275d1a0b Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 8 Jan 2015 16:53:35 +0100 Subject: handle the selection of a target in a generic way. we do not split the code of the selection of a target anymore. Each action now does a very simple thing and as much efficiently as possible. every old function that are not used anymore have been removed. Signed-off-by: Olivier Gayot --- prototypes.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'prototypes.h') diff --git a/prototypes.h b/prototypes.h index 2b69a76..ffa1c94 100644 --- a/prototypes.h +++ b/prototypes.h @@ -20,14 +20,11 @@ void Fdechargerimages (SURFACES *surfaces); void Finitialiserpositions (POSITIONS *positions, SURFACES *surfaces); /* actions */ -enum action_state_t Fattaquer (SURFACES *surfaces,POSITIONS *positions, struct team_t *ally, struct team_t *enemy, void *data); -enum action_state_t Fmagieelement (SURFACES *surfaces,POSITIONS *positions, struct team_t *ally, struct team_t *enemy, void *data); -enum action_state_t Fmagiesoin (SURFACES *surfaces,POSITIONS *positions, struct team_t *ally, struct team_t *enemy, void *data); -enum action_state_t Fpotion(SURFACES *surfaces,POSITIONS *positions, struct team_t *ally, struct team_t *enemy, void *data); -enum action_state_t Fether(SURFACES *surfaces,POSITIONS *positions, struct team_t *ally, struct team_t *enemy, void *data); - -int compute_damages(const struct character_t *src, const struct character_t *target, enum damages_type_t, enum element_t); -int compute_cure(const struct character_t *src, const struct character_t *target); +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 damage_target_hp(SURFACES *surfaces, POSITIONS *, struct character_t *target, int damages); void cure_target_hp(SURFACES *surfaces, POSITIONS *, struct character_t *target, int cure); @@ -36,10 +33,8 @@ void damage_target_mp(SURFACES *surfaces, POSITIONS *, struct character_t *targe void cure_target_mp(SURFACES *surfaces, POSITIONS *, struct character_t *target, int cure); void update_selected_target(SURFACES *surfaces, POSITIONS *positions, struct character_t *); -void Fblitteractivedesactive (SURFACES *surfaces,POSITIONS *positions,ENNEMIS ennemis[],int selection); void blit_character_affinities(SURFACES *, POSITIONS *, const struct character_t *); void update_list_entries(SURFACES *surfaces, POSITIONS *positions, const struct entry_t *entries, int cnt, int selected); -void Fchangeractionselectionnee(SURFACES *surfaces, POSITIONS *positions,int selection,int page,int nbactions,int type); void Fblitterpvcible (SURFACES *surfaces,POSITIONS *positions, const struct character_t *); void Fblitterpmcible (SURFACES *surfaces,POSITIONS *positions, const struct character_t *); void Fremplirobjets(OBJET *objets); -- cgit v1.2.3