/[LeafOK_CVS]/pvpgn-1.7.4/src/bnetd/ladder_calc.h
ViewVC logotype

Annotation of /pvpgn-1.7.4/src/bnetd/ladder_calc.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Tue Jun 6 03:41:37 2006 UTC (19 years, 9 months ago) by sysadm
Branch point for: GNU, MAIN
Content type: text/x-chdr
Initial revision

1 sysadm 1.1 /*
2     * Copyright (C) 1999 Rob Crittenden (rcrit@greyoak.com)
3     * Copyright (C) 1999,2000 Ross Combs (rocombs@cs.nmsu.edu)
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     typedef struct
23     {
24     double prob;
25     unsigned int k;
26     int adj;
27     unsigned int oldrating;
28     unsigned int oldrank;
29     } t_ladder_info;
30    
31     #endif
32    
33     /*****/
34     #ifndef JUST_NEED_TYPES
35     #ifndef INCLUDED_LADDER_CALC_PROTOS
36     #define INCLUDED_LADDER_CALC_PROTOS
37    
38     #define JUST_NEED_TYPES
39     #include "ladder.h"
40     #include "account.h"
41     #include "game.h"
42     #include "common/tag.h"
43     #undef JUST_NEED_TYPES
44    
45     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);
46    
47     #endif
48     #endif

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1