Changeset 9996ed5 in mainline for tetris/scores.h


Ignore:
Timestamp:
2006-06-05T20:40:44Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e9073f2
Parents:
0aa024b1
Message:

Tetris has now a new menu.
Hiscore table added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tetris/scores.h

    r0aa024b1 r9996ed5  
    4040 */
    4141#include <sys/time.h>
    42 #define MAXLOGNAME 10
     42#define MAXLOGNAME 16
    4343struct highscore {
    44         char    hs_name[MAXLOGNAME];    /* login name */
     44        char    hs_name[MAXLOGNAME + 1];        /* login name */
    4545        int     hs_score;       /* raw score */
    4646        int     hs_level;       /* play level */
    47         time_t  hs_time;        /* time at game end */
     47//      time_t  hs_time;        /* time at game end */
    4848};
    4949
    50 #define MAXHISCORES     80
    51 #define MAXSCORES       9       /* maximum high score entries per person */
    52 #define EXPIRATION      (5L * 365 * 24 * 60 * 60)
     50#define MAXHISCORES     10
     51//#define MAXSCORES     9       /* maximum high score entries per person */
     52//#define       EXPIRATION      (5L * 365 * 24 * 60 * 60)
    5353
    5454void savescore(int);
    5555void showscores(int);
     56void insertscore(int score, int level);
     57void initscores(void);
Note: See TracChangeset for help on using the changeset viewer.