OSDN Git Service

Merge pull request #1237 from sikabane-works/feature/refactor-is_chargeman
[hengbandforosx/hengbandosx.git] / src / player / player-status.h
1 #pragma once
2
3 /*
4  * @file player-status.h
5  * @brief プレーヤーのステータスに関する状態取得処理ヘッダ
6  */
7
8 #include "system/angband.h"
9
10 typedef struct object_type object_type;
11 typedef struct player_type player_type;
12 int weapon_exp_level(int weapon_exp);
13 int riding_exp_level(int riding_exp);
14 int spell_exp_level(int spell_exp);
15
16 WEIGHT calc_weapon_weight_limit(player_type *creature_ptr);
17 WEIGHT calc_bow_weight_limit(player_type *creature_ptr);
18 WEIGHT calc_inventory_weight(player_type *creature_ptr);
19
20 s16b calc_num_fire(player_type *creature_ptr, object_type *o_ptr);
21 WEIGHT calc_weight_limit(player_type *creature_ptr);
22 void update_creature(player_type *creature_ptr);
23 bool player_has_no_spellbooks(player_type *creature_ptr);
24
25 bool player_place(player_type *creature_ptr, POSITION y, POSITION x);
26
27 void check_experience(player_type *creature_ptr);
28 void wreck_the_pattern(player_type *creature_ptr);
29 void cnv_stat(int val, char *out_val);
30 s16b modify_stat_value(int value, int amount);
31 long calc_score(player_type *creature_ptr);
32
33 bool is_blessed(player_type *creature_ptr);
34 bool is_time_limit_esp(player_type *creature_ptr);
35 bool is_time_limit_stealth(player_type *creature_ptr);
36 bool is_fast(player_type *creature_ptr);
37 bool is_invuln(player_type *creature_ptr);
38 bool is_hero(player_type *creature_ptr);
39 bool is_shero(player_type *creature_ptr);
40 bool is_echizen(player_type *creature_ptr);
41 bool is_chargeman(player_type *creature_ptr);
42
43 void stop_mouth(player_type *caster_ptr);