Changeset ebe70f1 in mainline for uspace/app/tetris/scores.h
- Timestamp:
- 2009-06-09T11:10:31Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f3afd24
- Parents:
- 080ad7f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tetris/scores.h
r080ad7f rebe70f1 35 35 * @(#)scores.h 8.1 (Berkeley) 5/31/93 36 36 */ 37 37 38 /** @addtogroup tetris 38 * @{ 39 * @{ 39 40 */ 40 41 /** @file … … 45 46 * Tetris scores. 46 47 */ 48 47 49 #include <sys/time.h> 48 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 57 struct 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 */ 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); 63 void showscores(int); 64 void insertscore(int score, int level); 65 void initscores(void); 64 extern void showscores(int); 65 extern void initscores(void); 66 extern void insertscore(int score, int level); 66 67 67 68 /** @} 68 69 */ 69
Note:
See TracChangeset
for help on using the changeset viewer.