1 /* 2 * file dat_rating.h - level and game statistics 3 * 4 * $Id: dat_rating.h,v 1.5 2006/02/09 21:21:23 fzago Exp $ 5 * 6 * Program XBLAST 7 * (C) by Oliver Vogel (e-mail: m.vogel@ndh.net) 8 * Added by Koen De Raedt for central support 9 * 10 * This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published 12 * by the Free Software Foundation; either version 2; or (at your option) 13 * any later version 14 * 15 * This program is distributed in the hope that it will be entertaining, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILTY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 18 * Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License along 21 * with this program; if not, write to the Free Software Foundation, Inc. 22 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 * 24 */ 25 #ifndef _DAT_RATING_H 26 #define _DAT_RATING_H 27 28 #define MAX_MENU_INFO 15 29 30 /* 31 * global prototypes 32 */ 33 typedef struct 34 { 35 XBAtom atom; 36 const char *name; 37 int numWon; 38 int numTotal; 39 double score; 40 double percent; 41 int rank; 42 } XBCentralData; 43 44 typedef struct 45 { 46 const char *name; 47 const char *value; 48 } XBCentralInfo; 49 50 extern XBCentralData *CreateCentralStat (size_t * num); 51 extern XBCentralInfo *CreateCentralInfo (XBAtom atom, XBCentralData data); 52 53 #endif 54 /* 55 * end of file dat_rating.h 56 */ 57