OSDN Git Service

[Refactor] #963 Moved calculate_upkeep() from player-status.h to pet-util.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 bool is_in_dungeon(player_type *creature_ptr);
50
51 void stop_mouth(player_type *caster_ptr);
52 bool music_singing(player_type *caster_ptr, int music_songs);
53 bool music_singing_any(player_type *creature_ptr);
54
55 MAGIC_NUM1 get_singing_song_effect(const player_type *creature_ptr);
56 void set_singing_song_effect(player_type *creature_ptr, const MAGIC_NUM1 magic_num);
57 MAGIC_NUM1 get_interrupting_song_effect(const player_type *creature_ptr);
58 void set_interrupting_song_effect(player_type *creature_ptr, const MAGIC_NUM1 magic_num);
59 MAGIC_NUM1 get_singing_count(const player_type *creature_ptr);
60 void set_singing_count(player_type *creature_ptr, const MAGIC_NUM1 magic_num);
61 MAGIC_NUM2 get_singing_song_id(const player_type *creature_ptr);
62 void set_singing_song_id(player_type *creature_ptr, const MAGIC_NUM2 magic_num);