/* * mines - Super Mines game for MS-Dos/Win32/SVGAlib/X11 * * hiscore.h - high score table handler header file * ____________________________________________________________ * * Developed by Ondrej Jombik * 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 #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 */