OSDN Git Service

[Refactor] struct player_type を class PlayerType に置換。
[hengbandforosx/hengbandosx.git] / src / action / racial-execution.h
1 #pragma once
2 /*!
3  * @file racial-execution.h
4  * @brief レイシャルパワー実行処理ヘッダ
5  */
6
7 #include "system/angband.h"
8
9 enum racial_level_check_result {
10         RACIAL_SUCCESS = 1,
11         RACIAL_FAILURE = -1,
12         RACIAL_CANCEL = 0,
13 };
14
15 struct rpi_type;
16 class PlayerType;
17 PERCENTAGE racial_chance(PlayerType *player_ptr, rpi_type *rpi_ptr);
18 racial_level_check_result check_racial_level(PlayerType *player_ptr, rpi_type *rpi_ptr);
19 bool exe_racial_power(PlayerType *player_ptr, const int32_t command);