Files
rathena/src/map/duel.h
brianluau a2bdc47daf - Undid r16968: SVN Replaced with source:/trunk/src/@16966 (tid:74924).
[16969:16991/trunk/src/] will be re-committed in the next 24 hours.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16992 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-05 02:53:33 +00:00

30 lines
936 B
C

// 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);
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_ */