summaryrefslogtreecommitdiff
path: root/src/map/battle.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-03-09 15:53:52 -0300
committershennetsind <ind@henn.et>2013-03-09 15:53:52 -0300
commitc5f98035f69a8abb43c2e899e71b3e81811ded8d (patch)
treea504ee04d49f67e3901250626beb7d48d1f4e1c1 /src/map/battle.h
parent70a3d73ac5205c0a830dc32e220bfa38f355208d (diff)
downloadhercules-c5f98035f69a8abb43c2e899e71b3e81811ded8d.tar.gz
hercules-c5f98035f69a8abb43c2e899e71b3e81811ded8d.tar.bz2
hercules-c5f98035f69a8abb43c2e899e71b3e81811ded8d.tar.xz
hercules-c5f98035f69a8abb43c2e899e71b3e81811ded8d.zip
Hercules Renewal: battle.c complete
Added the last missing functions into the interface, all functions in battle.c are now wired to the interface. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/battle.h')
-rw-r--r--src/map/battle.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/map/battle.h b/src/map/battle.h
index e81990f21..e6f860b5a 100644
--- a/src/map/battle.h
+++ b/src/map/battle.h
@@ -11,6 +11,9 @@
struct map_session_data;
struct mob_data;
struct block_list;
+struct weapon_atk;
+struct status_change;
+struct status_data;
/**
* Defines
@@ -523,11 +526,25 @@ struct battle_interface {
bool (*check_range) (struct block_list *src,struct block_list *bl,int range);
/* consume amo for this skill and lv */
void (*consume_ammo) (struct map_session_data* sd, int skill, int lv);
+ int (*get_targeted_sub) (struct block_list *bl, va_list ap);
+ int (*get_enemy_sub) (struct block_list *bl, va_list ap);
+ int (*get_enemy_area_sub) (struct block_list *bl, va_list ap);
+ int (*delay_damage_sub) (int tid, unsigned int tick, int id, intptr_t data);
+ int (*blewcount_bonus) (struct map_session_data *sd, uint16 skill_id);
+ /* skill range criteria */
+ int (*range_type) (struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv);
+ int (*calc_base_damage) (struct status_data *status, struct weapon_atk *wa, struct status_change *sc, unsigned short t_size, struct map_session_data *sd, int flag);
+ struct Damage (*calc_misc_attack) (struct block_list *src,struct block_list *target,uint16 skill_id,uint16 skill_lv,int mflag);
+ struct Damage (*calc_magic_attack) (struct block_list *src,struct block_list *target,uint16 skill_id,uint16 skill_lv,int mflag);
+ int (*adjust_skill_damage) (int m, unsigned short skill_id);
+ int (*add_mastery) (struct map_session_data *sd,struct block_list *target,int dmg,int type);
+ int (*calc_drain) (int damage, int rate, int per);
/* - battle_config */
int (*config_read) (const char *cfgName);
void (*config_set_defaults) (void);
int (*config_set_value) (const char* w1, const char* w2);
int (*config_get_value) (const char* w1);
+ void (*config_adjust) (void);
/* ----------------------------------------- */
/* picks a random enemy within the specified range */
struct block_list* (*get_enemy_area) (struct block_list *src, int x, int y, int range, int type, int ignore_id);