Debian Codegraph @

src/bnetd/anongame_maplists.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2004 CreepLord ([email protected])
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18 #ifndef INCLUDED_ANONGAME_MAPLISTS_TYPES
19 #define INCLUDED_ANONGAME_MAPLISTS_TYPES
20
21 #endif
22
23 /*****/
24 #ifndef JUST_NEED_TYPES
25 #ifndef INCLUDED_ANONGAME_MAPLISTS_PROTOS
26 #define INCLUDED_ANONGAME_MAPLISTS_PROTOS
27
28 #define JUST_NEED_TYPES
29 # include "common/packet.h"
30 # include "common/tag.h"
31 #undef JUST_NEED_TYPES
32
33 namespace pvpgn
34 {
35
36 namespace bnetd
37 {
38
39 extern int anongame_maplists_create(void);
40 extern void anongame_maplists_destroy(void);
41
42 extern int maplists_get_totalmaps(t_clienttag clienttag);
43 extern int maplists_get_totalmaps_by_queue(t_clienttag clienttag, int queue);
44
45 extern void maplists_add_maps_to_packet(t_packet * packet, t_clienttag clienttag);
46 extern void maplists_add_map_info_to_packet(t_packet * rpacket, t_clienttag clienttag, int queue);
47
48 extern char * maplists_get_map(int queue, t_clienttag clienttag, int mapnumber);
49
50 extern int anongame_add_tournament_map(t_clienttag clienttag, char * mapname);
51 extern void anongame_tournament_maplists_destroy(void);
52
53 }
54
55 }
56
57 #endif
58 #endif