OSDN Git Service

Merge pull request #716 from sikabane-works/release/3.0.0Alpha16
[hengbandforosx/hengbandosx.git] / src / birth / quick-start.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 /*
6  * A structure to hold "rolled" information
7  */
8 typedef struct birther {
9     SEX_IDX psex; /* Sex index */
10     player_race_type prace; /* Race index */
11     player_class_type pclass; /* Class index */
12     player_personality_type pseikaku; /* Seikaku index */
13     REALM_IDX realm1; /* First magic realm */
14     REALM_IDX realm2; /* Second magic realm */
15
16     s16b age;
17     s16b ht;
18     s16b wt;
19     s16b sc;
20
21     PRICE au; /*!< 初期の所持金 */
22
23     BASE_STATUS stat_max[6]; /* Current "maximal" stat values */
24     BASE_STATUS stat_max_max[6]; /* Maximal "maximal" stat values */
25     HIT_POINT player_hp[PY_MAX_LEVEL];
26
27     PATRON_IDX chaos_patron;
28
29     s16b vir_types[8];
30
31     char history[4][60];
32
33     bool quick_ok;
34 } birther;
35
36 extern birther previous_char;
37
38 bool ask_quick_start(player_type *creature_ptr);
39 void save_prev_data(player_type *creature_ptr, birther *birther_ptr);
40 void load_prev_data(player_type *creature_ptr, bool swap);