Subversion Repositories HelenOS-historic

Rev

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

Rev 1466 Rev 1590
Line 37... Line 37...
37
 
37
 
38
/*
38
/*
39
 * Tetris scores.
39
 * Tetris scores.
40
 */
40
 */
41
#include <sys/time.h>
41
#include <sys/time.h>
42
#define MAXLOGNAME 10
42
#define MAXLOGNAME 16
43
struct highscore {
43
struct highscore {
44
    char    hs_name[MAXLOGNAME];    /* login name */
44
    char    hs_name[MAXLOGNAME + 1];    /* login name */
45
    int hs_score;   /* raw score */
45
    int hs_score;   /* raw score */
46
    int hs_level;   /* play level */
46
    int hs_level;   /* play level */
47
    time_t  hs_time;    /* time at game end */
47
//  time_t  hs_time;    /* time at game end */
48
};
48
};
49
 
49
 
50
#define MAXHISCORES 80
50
#define MAXHISCORES 10
51
#define MAXSCORES   9   /* maximum high score entries per person */
51
//#define MAXSCORES 9   /* maximum high score entries per person */
52
#define EXPIRATION  (5L * 365 * 24 * 60 * 60)
52
//#define   EXPIRATION  (5L * 365 * 24 * 60 * 60)
53
 
53
 
54
void savescore(int);
54
void savescore(int);
55
void showscores(int);
55
void showscores(int);
-
 
56
void insertscore(int score, int level);
-
 
57
void initscores(void);