Lines Matching refs:highscore

55 static  struct score_entry  highscore [HIGHSCORE_SLOTS];  variable
119 last = highscore+(HIGHSCORE_SLOTS-1); in merge_entry()
123 qsort (highscore, HIGHSCORE_SLOTS, sizeof (struct score_entry), in merge_entry()
138 highscore[n].score = 10*(HIGHSCORE_SLOTS-n); in randomize_entry()
139 highscore[n].level = 1; in randomize_entry()
140 highscore[n].date = time (NULL); in randomize_entry()
141 strcpy (highscore[n].name, names[uniform_rnd(13)]); in randomize_entry()
142 highscore[n].new = 0; in randomize_entry()
170 if (expire_date (i, highscore[i].date) < now) randomize_entry (i); in refill_old_entries()
172 qsort (highscore, HIGHSCORE_SLOTS, sizeof (struct score_entry), in refill_old_entries()
205 highscore[i].score = score; in read_version2_data()
206 highscore[i].level = level; in read_version2_data()
207 highscore[i].date = convert_old_date (day, month, year); in read_version2_data()
208 highscore[i].name[0] = '\0'; in read_version2_data()
209 highscore[i].new = 0; in read_version2_data()
210 strncat (highscore[i].name, name, MAX_NAME_CHARS); in read_version2_data()
212 qsort (highscore, HIGHSCORE_SLOTS, sizeof (struct score_entry), in read_version2_data()
239 highscore[i].score = score; in read_version3_data()
240 highscore[i].level = level; in read_version3_data()
241 highscore[i].date = parse_date (date); in read_version3_data()
242 highscore[i].name[0] = '\0'; in read_version3_data()
243 highscore[i].new = 0; in read_version3_data()
244 strncat (highscore[i].name, name, MAX_NAME_CHARS); in read_version3_data()
308 format_date (date, highscore[i].date); in write_data()
311 highscore[i].score, highscore[i].level, date, in write_data()
312 highscore[i].name); in write_data()
518 format_display_date (date, highscore[i].date); in show_highscores()
519 dt = difftime (expire_date (i, highscore[i].date), now); in show_highscores()
522 i+1, highscore[i].score, highscore[i].level, date, expire, in show_highscores()
523 highscore[i].name); in show_highscores()
552 if (highscore[i].score < last_score) break; in center_new()
578 if (highscore[i].new) { in print_scores()
579 if (highscore[i].score == last_score) my_rank = i+1; in print_scores()
589 format_display_date (date, highscore[i].date); in print_scores()
590 dt = difftime (expire_date (i, highscore[i].date), now); in print_scores()
592 if (highscore[i].new) wstandout (moon); in print_scores()
595 i+1, highscore[i].score, highscore[i].level, date, expire, in print_scores()
596 highscore[i].name); in print_scores()
597 if (highscore[i].new) wstandend (moon); in print_scores()
653 if (last_score > highscore[HIGHSCORE_SLOTS-1].score) { in highscore_enter()