OSDN Git Service

[Refactor] #963 Moved is_in_dungeon() from player-status.cpp/h to dungeon.cpp/h
[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 concptr your_alignment(player_type *creature_ptr, bool with_value = false);
13 int weapon_exp_level(int weapon_exp);
14 int riding_exp_level(int riding_exp);
15 int spell_exp_level(int spell_exp);
16
17 int calc_weapon_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 bool has_melee_weapon(player_type *creature_ptr, int i);
23
24 bool heavy_armor(player_type *creature_ptr);
25 void update_creature(player_type *creature_ptr);
26 BIT_FLAGS16 empty_hands(player_type *creature_ptr, bool riding_control);
27 bool player_has_no_spellbooks(player_type *creature_ptr);
28
29 void take_turn(player_type *creature_ptr, PERCENTAGE need_cost);
30 void free_turn(player_type *creature_ptr);
31
32 bool player_place(player_type *creature_ptr, POSITION y, POSITION x);
33
34 void check_experience(player_type *creature_ptr);
35 void wreck_the_pattern(player_type *creature_ptr);
36 void cnv_stat(int val, char *out_val);
37 s16b modify_stat_value(int value, int amount);
38 long calc_score(player_type *creature_ptr);
39
40 bool is_blessed(player_type *creature_ptr);
41 bool is_time_limit_esp(player_type *creature_ptr);
42 bool is_time_limit_stealth(player_type *creature_ptr);
43 bool can_two_hands_wielding(player_type *creature_ptr);
44 bool is_fast(player_type *creature_ptr);
45 bool is_invuln(player_type *creature_ptr);
46 bool is_hero(player_type *creature_ptr);
47 bool is_shero(player_type *creature_ptr);
48 bool is_echizen(player_type *creature_ptr);
49
50 void stop_mouth(player_type *caster_ptr);