OSDN Git Service

Merge branch 'For2.2.2-Refactoring' into For2.2.2-Fix-Hourier
[hengband/hengband.git] / src / scores.h
1 #pragma once
2
3 /*
4  * Semi-Portable High Score List Entry (128 bytes) -- BEN
5  *
6  * All fields listed below are null terminated ascii strings.
7  *
8  * In addition, the "number" fields are right justified, and
9  * space padded, to the full available length (minus the "null").
10  *
11  * Note that "string comparisons" are thus valid on "pts".
12  */
13 typedef struct high_score
14 {
15         GAME_TEXT what[8];              /* Version info (string) */
16         GAME_TEXT pts[10];              /* Total Score (number) */
17         GAME_TEXT gold[10];             /* Total Gold (number) */
18         GAME_TEXT turns[10];            /* Turns Taken (number) */
19         GAME_TEXT day[10];              /* Time stamp (string) */
20         GAME_TEXT who[16];              /* Player Name (string) */
21         GAME_TEXT uid[8];               /* Player UID (number) */
22         GAME_TEXT sex[2];               /* Player Sex (string) */
23         GAME_TEXT p_r[3];               /* Player Race (number) */
24         GAME_TEXT p_c[3];               /* Player Class (number) */
25         GAME_TEXT p_a[3];               /* Player Seikaku (number) */
26
27         GAME_TEXT cur_lev[4];           /* Current Player Level (number) */
28         GAME_TEXT cur_dun[4];           /* Current Dungeon Level (number) */
29         GAME_TEXT max_lev[4];           /* Max Player Level (number) */
30         GAME_TEXT max_dun[4];           /* Max Dungeon Level (number) */
31
32         GAME_TEXT how[40];              /* Method of death (string) */
33 } high_score;
34
35 #define MAX_HISCORES    999 /*!< スコア情報保存の最大数 / Maximum number of high scores in the high score file */
36
37 extern int highscore_fd;
38
39 /* scores.c */
40 extern void display_scores_aux(int from, int to, int note, high_score *score);
41 extern void display_scores(int from, int to);
42 extern void kingly(player_type *winner_ptr);
43 extern bool send_world_score(player_type *current_player_ptr, bool do_send);
44 extern errr top_twenty(player_type *current_player_ptr);
45 extern errr predict_score(player_type *current_player_ptr);
46 extern void race_legends(player_type *current_player_ptr);
47 extern void race_score(player_type *current_player_ptr, int race_num);
48 extern void show_highclass(player_type *current_player_ptr);
49 extern bool check_score(player_type *current_player_ptr);