Subversion Repositories HelenOS

Rev

Rev 4296 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4296 Rev 4537
Line 32... Line 32...
32
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33
 * SUCH DAMAGE.
33
 * SUCH DAMAGE.
34
 *
34
 *
35
 *  @(#)scores.h    8.1 (Berkeley) 5/31/93
35
 *  @(#)scores.h    8.1 (Berkeley) 5/31/93
36
 */
36
 */
-
 
37
 
37
/** @addtogroup tetris
38
/** @addtogroup tetris
38
 * @{
39
 * @{
39
 */
40
 */
40
/** @file
41
/** @file
41
 */
42
 */
42
 
43
 
43
 
44
 
44
/*
45
/*
45
 * Tetris scores.
46
 * Tetris scores.
46
 */
47
 */
-
 
48
 
47
#include <sys/time.h>
49
#include <sys/time.h>
48
#include <string.h>
50
#include <string.h>
49
 
51
 
50
#define MAXLOGNAME 16
52
#define MAXLOGNAME   16
-
 
53
#define MAXHISCORES  10
-
 
54
#define MAXSCORES    9  /* maximum high score entries per person */
-
 
55
#define EXPIRATION   (5L * 365 * 24 * 60 * 60)
-
 
56
 
51
struct highscore {
57
struct highscore {
52
    char    hs_name[STR_BOUNDS(MAXLOGNAME) + 1];    /* login name */
58
    char hs_name[STR_BOUNDS(MAXLOGNAME) + 1];  /* login name */
53
    int hs_score;   /* raw score */
59
    int hs_score;                              /* raw score */
54
    int hs_level;   /* play level */
60
    int hs_level;                              /* play level */
55
//  time_t  hs_time;    /* time at game end */
61
    time_t hs_time;                            /* time at game end */
56
};
62
};
57
 
63
 
58
#define MAXHISCORES 10
-
 
59
//#define MAXSCORES 9   /* maximum high score entries per person */
-
 
60
//#define   EXPIRATION  (5L * 365 * 24 * 60 * 60)
-
 
61
 
-
 
62
void savescore(int);
64
extern void showscores(int);
63
void showscores(int);
65
extern void initscores(void);
64
void insertscore(int score, int level);
66
extern void insertscore(int score, int level);
65
void initscores(void);
-
 
66
 
67
 
67
/** @}
68
/** @}
68
 */
69
 */
69
 
-