summaryrefslogtreecommitdiff
path: root/src/map/duel.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-29 12:40:46 -0300
committershennetsind <ind@henn.et>2013-07-29 12:40:46 -0300
commitd59067bda89125ee68b7aa453d715f44ce853ec4 (patch)
tree3b36fab0528ee0335513ae21a0ce376c226d41d1 /src/map/duel.h
parentbdd6fbe74a64373442fc2c2d4c789b9eb8509f23 (diff)
parent309ffb2a4990596e86ff16fccd38fe80972ce49d (diff)
downloadhercules-d59067bda89125ee68b7aa453d715f44ce853ec4.tar.gz
hercules-d59067bda89125ee68b7aa453d715f44ce853ec4.tar.bz2
hercules-d59067bda89125ee68b7aa453d715f44ce853ec4.tar.xz
hercules-d59067bda89125ee68b7aa453d715f44ce853ec4.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/duel.h')
-rw-r--r--src/map/duel.h46
1 files changed, 31 insertions, 15 deletions
diff --git a/src/map/duel.h b/src/map/duel.h
index 04d8e4e84..9fa33833a 100644
--- a/src/map/duel.h
+++ b/src/map/duel.h
@@ -1,6 +1,5 @@
// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
-
#ifndef _DUEL_H_
#define _DUEL_H_
@@ -11,19 +10,36 @@ 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);
+
+
+
+/*=====================================
+* Interface : duel.h
+* Generated by HerculesInterfaceMaker
+* created by Susu
+*-------------------------------------*/
+struct duel_interface {
+
+ /* vars */
+ struct duel duel_list[MAX_DUEL];
+ int duel_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 (*do_init_duel) (void);
+ void (*do_final_duel) (void);
+} iDuel_s;
+
+struct duel_interface *iDuel;
+
+void iDuel_defaults(void);
#endif /* _DUEL_H_ */