diff options
Diffstat (limited to 'src/map/duel.h')
-rw-r--r-- | src/map/duel.h | 60 |
1 files changed, 40 insertions, 20 deletions
diff --git a/src/map/duel.h b/src/map/duel.h index 04d8e4e84..de2bd1bf6 100644 --- a/src/map/duel.h +++ b/src/map/duel.h @@ -1,8 +1,13 @@ -// Copyright (c) Athena Dev Teams - Licensed under GNU GPL -// For more information, see LICENCE in the main folder +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// Portions Copyright (c) Athena Dev Teams -#ifndef _DUEL_H_ -#define _DUEL_H_ +#ifndef MAP_DUEL_H +#define MAP_DUEL_H + +#include "../common/cbasetypes.h" + +struct map_session_data; struct duel { int members_count; @@ -11,19 +16,34 @@ struct duel { }; #define MAX_DUEL 1024 -extern struct duel duel_list[MAX_DUEL]; -extern int duel_count; - -//Duel functions // [LuzZza] -int duel_create(struct map_session_data* sd, const unsigned int maxpl); -void duel_invite(const unsigned int did, struct map_session_data* sd, struct map_session_data* target_sd); -void duel_accept(const unsigned int did, struct map_session_data* sd); -void duel_reject(const unsigned int did, struct map_session_data* sd); -void duel_leave(const unsigned int did, struct map_session_data* sd); -void duel_showinfo(const unsigned int did, struct map_session_data* sd); -int duel_checktime(struct map_session_data* sd); - -void do_init_duel(void); -void do_final_duel(void); - -#endif /* _DUEL_H_ */ + +/*===================================== +* Interface : duel.h +* Generated by HerculesInterfaceMaker +* created by Susu +*-------------------------------------*/ +struct duel_interface { + + /* vars */ + struct duel list[MAX_DUEL]; + int count; + + /* funcs */ + //Duel functions // [LuzZza] + int (*create) (struct map_session_data* sd, const unsigned int maxpl); + void (*invite) (const unsigned int did, struct map_session_data* sd, struct map_session_data* target_sd); + void (*accept) (const unsigned int did, struct map_session_data* sd); + void (*reject) (const unsigned int did, struct map_session_data* sd); + void (*leave) (const unsigned int did, struct map_session_data* sd); + void (*showinfo) (const unsigned int did, struct map_session_data* sd); + int (*checktime) (struct map_session_data* sd); + + void (*init) (bool minimal); + void (*final) (void); +} duel_s; + +struct duel_interface *duel; + +void duel_defaults(void); + +#endif /* MAP_DUEL_H */ |