diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2012-12-16 17:47:51 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2012-12-24 10:02:00 -0800 |
commit | b52127bcbf817ff8285b36d22198b275327e16bb (patch) | |
tree | 7bc596289c011e719168bef846b8cf63bf5d4947 /src/map/party.hpp | |
parent | 4bd7eeec09629d3c0f900d42c899fe23c69e07b6 (diff) | |
download | tmwa-b52127bcbf817ff8285b36d22198b275327e16bb.tar.gz tmwa-b52127bcbf817ff8285b36d22198b275327e16bb.tar.bz2 tmwa-b52127bcbf817ff8285b36d22198b275327e16bb.tar.xz tmwa-b52127bcbf817ff8285b36d22198b275327e16bb.zip |
Cleanup headers and remove all uses of va_list except logging
Diffstat (limited to 'src/map/party.hpp')
-rw-r--r-- | src/map/party.hpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/map/party.hpp b/src/map/party.hpp index 6ab5979..853087e 100644 --- a/src/map/party.hpp +++ b/src/map/party.hpp @@ -1,8 +1,7 @@ -// $Id: party.h,v 1.3 2004/09/25 05:32:18 MouseJstr Exp $ #ifndef PARTY_HPP #define PARTY_HPP -#include <stdarg.h> +#include <functional> struct party; struct map_session_data; @@ -42,11 +41,11 @@ int party_recv_message(int party_id, int account_id, const char *mes, int len); int party_check_conflict(struct map_session_data *sd); int party_send_xy_clear(struct party *p); -void party_send_hp_check(struct block_list *bl, va_list ap); +void party_send_hp_check(struct block_list *bl, int party_id, int *flag); int party_exp_share(struct party *p, int map, int base_exp, int job_exp); -void party_foreachsamemap(void(*func)(struct block_list *, va_list), - struct map_session_data *sd, int type, ...); +void party_foreachsamemap(std::function<void(struct block_list *)> func, + struct map_session_data *sd, int type); -#endif +#endif // PARTY_HPP |