OSDN Git Service

[Refactor] #40466 Separated status-reseter.c/h from player-effects.c/h
[hengband/hengband.git] / src / player / player-effects.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 void set_action(player_type *creature_ptr, ACTION_IDX typ);
6 void dispel_player(player_type *creature_ptr);
7 bool set_mimic(player_type *creature_ptr, TIME_EFFECT v, MIMIC_RACE_IDX p, bool do_dec);
8 bool set_fast(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
9 bool set_shield(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
10 bool set_tsubureru(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
11 bool set_magicdef(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
12 bool set_blessed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
13 bool set_hero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
14 bool set_shero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
15 bool set_protevil(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
16 bool set_invuln(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
17 bool set_tim_invis(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
18 bool set_tim_infra(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
19 bool set_tim_regen(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
20 bool set_tim_stealth(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
21 bool set_lightspeed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
22 bool set_tim_levitation(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
23 bool set_tim_sh_touki(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
24 bool set_tim_sh_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
25 bool set_tim_sh_holy(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
26 bool set_tim_eyeeye(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
27 bool set_resist_magic(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
28 bool set_tim_reflect(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
29 bool set_multishadow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
30 bool set_dustrobe(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
31 bool set_kabenuke(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
32 bool set_tsuyoshi(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
33 bool set_ele_attack(player_type *creature_ptr, u32b attack_type, TIME_EFFECT v);
34 bool set_ele_immune(player_type *creature_ptr, u32b immune_type, TIME_EFFECT v);
35 bool set_oppose_acid(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
36 bool set_oppose_elec(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
37 bool set_oppose_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
38 bool set_oppose_cold(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
39 bool set_oppose_pois(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
40 bool set_food(player_type *creature_ptr, TIME_EFFECT v);
41 bool inc_stat(player_type *creature_ptr, int stat);
42 bool dec_stat(player_type *creature_ptr, int stat, int amount, int permanent);
43 bool res_stat(player_type *creature_ptr, int stat);
44 bool hp_player(player_type *creature_ptr, int num);
45 bool do_dec_stat(player_type *creature_ptr, int stat);
46 bool do_res_stat(player_type *creature_ptr, int stat);
47 bool do_inc_stat(player_type *creature_ptr, int stat);
48 bool restore_level(player_type *creature_ptr);
49 bool lose_all_info(player_type *creature_ptr);
50 void gain_exp_64(player_type *creature_ptr, s32b amount, u32b amount_frac);
51 void gain_exp(player_type *creature_ptr, s32b amount);
52 void calc_android_exp(player_type *creature_ptr);
53 void lose_exp(player_type *creature_ptr, s32b amount);
54 bool drain_exp(player_type *creature_ptr, s32b drain, s32b slip, int hold_exp_prob);
55 void do_poly_self(player_type *creature_ptr);
56 bool set_ultimate_res(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
57 bool set_tim_res_nether(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
58 bool set_tim_res_time(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
59 bool choose_ele_attack(player_type *creature_ptr);
60 bool choose_ele_immune(player_type *creature_ptr, TIME_EFFECT turn);
61 bool set_wraith_form(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
62 bool set_tim_esp(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
63 bool set_superstealth(player_type *creature_ptr, bool set);
64 void do_poly_wounds(player_type *creature_ptr);
65 void change_race(player_type *creature_ptr, player_race_type new_race, concptr effect_msg);
66 bool drop_weapons(player_type *creature_ptr);