File: [Platon] / games / mines / hiscore.h (download)
Revision 1.3, Tue Apr 6 09:54:17 2004 UTC (20 years ago) by nepto
Changes since 1.2: +12 -5
lines
Headers update:
- switch to standard/classic Platon SDG source header
- bumped copyright year to 2004
- changelog dates reformatted to new format YYYY-MM-DD
|
/*
* mines - Super Mines game for MS-Dos/Win32/SVGAlib/X11
*
* hiscore.h - high score table handler header file
* ____________________________________________________________
*
* Developed by Ondrej Jombik <nepto@platon.sk>
* Copyright (c) 2003-2004 Platon SDG, http://platon.sk/
* All rights reserved.
*
* See README file for more information about this software.
* See COPYING file for license information.
*
* Download the latest version from
* http://platon.sk/projects/games/
*
* Changelog:
* 2003-05-18 - created
*/
/* $Platon: games/mines/hiscore.h,v 1.2 2003/08/03 21:34:19 nepto Exp $ */
#ifndef _HISCORE_H
# define _HISCORE_H
#include <typedef.h>
#ifndef HISCORE_MAX_ITEMS
# define HISCORE_MAX_ITEMS (10) /* min.10, max.10 */
#endif
#ifndef HISCORE_NAME_LEN
# define HISCORE_NAME_LEN (20) /* min.N/A, max.35 */
#endif
#define HISCORE_AUTODETECT -1
typedef struct hiscore_item
{
char name[HISCORE_NAME_LEN + 1];
BYTE nx,ny,diff;
struct date date;
struct time time;
} HISCORE_ITEM;
/* High scores handling */
void hiscore_init(char *filename, long int offset);
void hiscore_close(void);
int hiscore_items(void);
int hiscore_get_item(HISCORE_ITEM*item,BYTE n);
int hiscore_set_item(HISCORE_ITEM*item,BYTE n);
#endif /* #ifndef _HISCORE_H */
Platon Group <platon@platon.org> http://platon.org/
|