OSDN Git Service

[Refactor] #2204 HIT_POINTエイリアスをintに揃えた
[hengbandforosx/hengbandosx.git] / src / birth / quick-start.h
1 #pragma once
2
3 #include "player-info/class-types.h"
4 #include "player-info/race-types.h"
5 #include "player/player-personality-types.h"
6 #include "player/player-sex.h"
7 #include "system/angband.h"
8 #include "system/system-variables.h"
9
10 /*
11  * A structure to hold "rolled" information
12  */
13 struct birther {
14     player_sex psex{}; /* Sex index */
15     PlayerRaceType prace{}; /* Race index */
16     PlayerClassType pclass{}; /* Class index */
17     player_personality_type ppersonality{}; /* Seikaku index */
18     int16_t realm1{}; /* First magic realm */
19     int16_t realm2{}; /* Second magic realm */
20
21     int16_t age{};
22     int16_t ht{};
23     int16_t wt{};
24     int16_t sc{};
25
26     PRICE au{}; /*!< 初期の所持金 */
27
28     BASE_STATUS stat_max[6]{}; /* Current "maximal" stat values */
29     BASE_STATUS stat_max_max[6]{}; /* Maximal "maximal" stat values */
30     int player_hp[PY_MAX_LEVEL]{};
31
32     int16_t chaos_patron{}; /*! カオスパトロンのID */
33
34     int16_t vir_types[8]{};
35
36     char history[4][60]{};
37
38     bool quick_ok{};
39 };
40
41 extern birther previous_char;
42
43 class PlayerType;
44 bool ask_quick_start(PlayerType *player_ptr);
45 void save_prev_data(PlayerType *player_ptr, birther *birther_ptr);
46 void load_prev_data(PlayerType *player_ptr, bool swap);