Changeset ebe70f1 in mainline for uspace/app/tetris/scores.h


Ignore:
Timestamp:
2009-06-09T11:10:31Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3afd24
Parents:
080ad7f
Message:

slightly cleanup the horrible mess of tetris
introduce colors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tetris/scores.h

    r080ad7f rebe70f1  
    3535 *      @(#)scores.h    8.1 (Berkeley) 5/31/93
    3636 */
     37
    3738/** @addtogroup tetris
    38  * @{ 
     39 * @{
    3940 */
    4041/** @file
     
    4546 * Tetris scores.
    4647 */
     48
    4749#include <sys/time.h>
    4850#include <string.h>
    4951
    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
    5157struct highscore {
    52         char    hs_name[STR_BOUNDS(MAXLOGNAME) + 1];    /* login name */
    53         int     hs_score;       /* raw score */
    54         int     hs_level;       /* play level */
    55 //      time_t  hs_time;        /* time at game end */
     58        char hs_name[STR_BOUNDS(MAXLOGNAME) + 1];  /* login name */
     59        int hs_score;                              /* raw score */
     60        int hs_level;                              /* play level */
     61        time_t hs_time;                            /* time at game end */
    5662};
    5763
    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);
    63 void showscores(int);
    64 void insertscore(int score, int level);
    65 void initscores(void);
     64extern void showscores(int);
     65extern void initscores(void);
     66extern void insertscore(int score, int level);
    6667
    6768/** @}
    6869 */
    69 
Note: See TracChangeset for help on using the changeset viewer.