summaryrefslogtreecommitdiff
path: root/src/map/duel.h
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-04-09 12:07:58 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-04-09 12:07:58 +0000
commit94da412fe250304a371605e6bf4a08ef1ca2fd3b (patch)
tree09cf3fea3c2dcbb39d41441eef538427f2e623d0 /src/map/duel.h
parentf75cd63e74884bfb8ee5f59717d8e37671948af6 (diff)
downloadhercules-94da412fe250304a371605e6bf4a08ef1ca2fd3b.tar.gz
hercules-94da412fe250304a371605e6bf4a08ef1ca2fd3b.tar.bz2
hercules-94da412fe250304a371605e6bf4a08ef1ca2fd3b.tar.xz
hercules-94da412fe250304a371605e6bf4a08ef1ca2fd3b.zip
* Moved duel code into a separate file.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14785 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/duel.h')
-rw-r--r--src/map/duel.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/map/duel.h b/src/map/duel.h
new file mode 100644
index 000000000..674d0e12f
--- /dev/null
+++ b/src/map/duel.h
@@ -0,0 +1,29 @@
+// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
+// For more information, see LICENCE in the main folder
+
+#ifndef _DUEL_H_
+#define _DUEL_H_
+
+struct duel {
+ int members_count;
+ int invites_count;
+ int max_players_limit;
+};
+
+#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);
+int duel_invite(const unsigned int did, struct map_session_data* sd, struct map_session_data* target_sd);
+int duel_accept(const unsigned int did, struct map_session_data* sd);
+int duel_reject(const unsigned int did, struct map_session_data* sd);
+int duel_leave(const unsigned int did, struct map_session_data* sd);
+int duel_showinfo(const unsigned int did, struct map_session_data* sd);
+int duel_checktime(struct map_session_data* sd);
+
+int do_init_duel(void);
+void do_final_duel(void);
+
+#endif /* _DUEL_H_ */