Debian Codegraph @

src/bnetd/ladder_calc.h

raw symbols SCIP
1 /*
2 * Copyright (C) 1999 Rob Crittenden ([email protected])
3 * Copyright (C) 1999,2000 Ross Combs ([email protected])
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19 #ifndef INCLUDED_LADDER_CALC_TYPES
20 #define INCLUDED_LADDER_CALC_TYPES
21
22 namespace pvpgn
23 {
24
25 namespace bnetd
26 {
27
28 typedef struct
29 {
30 double prob;
31 unsigned int k;
32 int adj;
33 unsigned int oldrating;
34 unsigned int oldrank;
35 } t_ladder_info;
36
37 }
38
39 }
40
41 #endif
42
43 /*****/
44 #ifndef JUST_NEED_TYPES
45 #ifndef INCLUDED_LADDER_CALC_PROTOS
46 #define INCLUDED_LADDER_CALC_PROTOS
47
48 #define JUST_NEED_TYPES
49 #include "ladder.h"
50 #include "account.h"
51 #include "game.h"
52 #include "common/tag.h"
53 #undef JUST_NEED_TYPES
54
55 namespace pvpgn
56 {
57
58 namespace bnetd
59 {
60
61 extern int ladder_calc_info(t_clienttag clienttag, t_ladder_id id, unsigned int count, t_account * * players, t_game_result * results, t_ladder_info * info);
62
63 }
64
65 }
66
67 #endif
68 #endif