/[LeafOK_CVS]/pvpgn-1.7.4/src/d2dbs/d2ladder.h
ViewVC logotype

Annotation of /pvpgn-1.7.4/src/d2dbs/d2ladder.h

Parent Directory Parent Directory | Revision Log Revision Log


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

1 sysadm 1.1 /*
2     * Copyright (C) 2001 sousou (liupeng.cs@263.net)
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_D2LADDER_H
19     #define INCLUDED_D2LADDER_H
20    
21     #include <stdio.h>
22     #include "common/list.h"
23     #include "d2cs/d2cs_d2dbs_ladder.h"
24     #define JUST_NEED_TYPES
25     #include "d2cs/d2charfile.h"
26     #undef JUST_NEED_TYPES
27    
28     #define LADDER_BACKUP_PREFIX "ladderbk"
29     #define DEFAULT_LADDER_DIR "var/ladders"
30     #define LADDERFILE_CHECKSUM_OFFSET offsetof(t_d2ladderfile_header,checksum)
31    
32     typedef struct
33     {
34     unsigned int experience;
35     unsigned short status;
36     unsigned char level;
37     unsigned char class;
38     char charname[MAX_CHARNAME_LEN];
39     } t_d2ladder_info;
40    
41     typedef struct
42     {
43     unsigned int type;
44     t_d2ladder_info * info;
45     unsigned int len;
46     } t_d2ladder;
47    
48     typedef t_list t_d2ladderlist;
49    
50     #define D2LADDER_MAXNUM 200
51     #define D2LADDER_OVERALL_MAXNUM 1000
52     #define D2LADDER_MAXTYPE 35
53    
54     extern int d2dbs_d2ladder_init(void);
55     extern int d2dbs_d2ladder_destroy(void);
56     extern int d2ladder_rebuild(void);
57     extern int d2ladder_update(t_d2ladder_info * pcharladderinfo);
58     extern int d2ladder_print(FILE * ladderstrm);
59     extern int d2ladder_saveladder(void);
60    
61     #endif

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