Hengband  2.2.1
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 
14 typedef struct high_score high_score;
15 
16 struct high_score
17 {
18  GAME_TEXT what[8]; /* Version info (string) */
19  GAME_TEXT pts[10]; /* Total Score (number) */
20  GAME_TEXT gold[10]; /* Total Gold (number) */
21  GAME_TEXT turns[10]; /* Turns Taken (number) */
22  GAME_TEXT day[10]; /* Time stamp (string) */
23  GAME_TEXT who[16]; /* Player Name (string) */
24  GAME_TEXT uid[8]; /* Player UID (number) */
25  GAME_TEXT sex[2]; /* Player Sex (string) */
26  GAME_TEXT p_r[3]; /* Player Race (number) */
27  GAME_TEXT p_c[3]; /* Player Class (number) */
28  GAME_TEXT p_a[3]; /* Player Seikaku (number) */
29 
30  GAME_TEXT cur_lev[4]; /* Current Player Level (number) */
31  GAME_TEXT cur_dun[4]; /* Current Dungeon Level (number) */
32  GAME_TEXT max_lev[4]; /* Max Player Level (number) */
33  GAME_TEXT max_dun[4]; /* Max Dungeon Level (number) */
34 
35  GAME_TEXT how[40]; /* Method of death (string) */
36 };
37 
38 #define MAX_HISCORES 999 /*!< スコア情報保存の最大数 / Maximum number of high scores in the high score file */
39 
40 extern int highscore_fd;
41 
42 /* scores.c */
43 extern void display_scores_aux(int from, int to, int note, high_score *score);
44 extern void display_scores(int from, int to);
45 extern void kingly(player_type *winner_ptr);
46 extern bool send_world_score(bool do_send);
47 extern errr top_twenty(player_type *current_player_ptr);
48 extern errr predict_score(player_type *creature_ptr);
49 extern void race_legends(void);
50 extern void race_score(int race_num);
51 extern void show_highclass(player_type *current_player_ptr);
52 extern bool check_score(void);
GAME_TEXT pts[10]
Definition: scores.h:19
GAME_TEXT turns[10]
Definition: scores.h:21
void display_scores_aux(int from, int to, int note, high_score *score)
指定された順位範囲でスコアを並べて表示する / Display the scores in a given range.
Definition: scores.c:168
GAME_TEXT cur_dun[4]
Definition: scores.h:31
void display_scores(int from, int to)
スコア表示処理メインルーチン / Hack – Display the scores in a given range and quit.
Definition: scores.c:407
GAME_TEXT how[40]
Definition: scores.h:35
void kingly(player_type *winner_ptr)
勝利者用の引退演出処理 / Change the player into a King! -RAK-
Definition: scores.c:856
GAME_TEXT uid[8]
Definition: scores.h:24
int errr
エラーコードの定義 / Error codes for function return values
Definition: h-type.h:57
GAME_TEXT gold[10]
Definition: scores.h:20
char GAME_TEXT
ゲーム中のテキスト型定義
Definition: h-type.h:152
GAME_TEXT cur_lev[4]
Definition: scores.h:30
int highscore_fd
Definition: scores.c:35
void race_legends(void)
スコアランキングの簡易表示(種族毎)メインルーチン / Race Legends -KMW-
Definition: scores.c:837
void race_score(int race_num)
スコアランキングの簡易表示(種族毎)サブルーチン / Race Legends -KMW-
Definition: scores.c:753
errr predict_score(player_type *creature_ptr)
プレイヤーの現在のスコアをランキングに挟む / Predict the players location, and display it.
Definition: scores.c:600
Definition: scores.h:16
errr top_twenty(player_type *current_player_ptr)
スコアの過去二十位内ランキングを表示する Enters a players name on a hi-score table, if "legal", and in any case,...
Definition: scores.c:480
GAME_TEXT p_a[3]
Definition: scores.h:28
GAME_TEXT max_dun[4]
Definition: scores.h:33
bool check_score(void)
スコアファイル出力 Display some character info
Definition: scores.c:929
void show_highclass(player_type *current_player_ptr)
スコアランキングの簡易表示 / show_highclass - selectively list highscores based on class -KMW-
Definition: scores.c:677
GAME_TEXT p_c[3]
Definition: scores.h:27
GAME_TEXT who[16]
Definition: scores.h:23
bool send_world_score(bool do_send)
スコアサーバへの転送処理
Definition: scores.c:438
GAME_TEXT max_lev[4]
Definition: scores.h:32
GAME_TEXT day[10]
Definition: scores.h:22
Definition: player-status.h:86
GAME_TEXT what[8]
Definition: scores.h:18
static void note(concptr str)
画面左下にシステムメッセージを表示する / Hack – take notes on line 23
Definition: init.c:1607
GAME_TEXT sex[2]
Definition: scores.h:25
GAME_TEXT p_r[3]
Definition: scores.h:26