summaryrefslogtreecommitdiff
path: root/prototypes.h
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-08 16:53:35 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-08 16:53:35 +0100
commite8b35eae36f56492069d8f242c078ec5275d1a0b (patch)
treebe50721ca7d46454d4be5ab311fdbee52578417a /prototypes.h
parent6d8f84b21c4423afa52a3d3c4ff88110dbe1d1be (diff)
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 <duskcoder@gmail.com>
Diffstat (limited to 'prototypes.h')
-rw-r--r--prototypes.h15
1 files changed, 5 insertions, 10 deletions
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);