OSDN Git Service

[Refactor] #38997 set_action() に player_type * 引数を追加.
[hengband/hengband.git] / src / player-effects.h
1 #pragma once
2
3 typedef struct kamae kamae;
4
5 struct kamae
6 {
7         concptr desc;       /* A verbose kamae description */
8         PLAYER_LEVEL min_level;  /* Minimum level to use */
9         concptr info;
10 };
11
12 /* effects.c */
13
14 extern void set_action(player_type *creature_ptr, ACTION_IDX typ);
15 extern void reset_tim_flags(player_type *creature_ptr);
16 extern void dispel_player(player_type *creature_ptr);
17 extern bool set_mimic(player_type *creature_ptr, TIME_EFFECT v, IDX p, bool do_dec);
18 extern bool set_blind(player_type *creature_ptr, TIME_EFFECT v);
19 extern bool set_confused(player_type *creature_ptr, TIME_EFFECT v);
20 extern bool set_poisoned(player_type *creature_ptr, TIME_EFFECT v);
21 extern bool set_afraid(player_type *creature_ptr, TIME_EFFECT v);
22 extern bool set_paralyzed(player_type *creature_ptr, TIME_EFFECT v);
23 extern bool set_image(player_type *creature_ptr, TIME_EFFECT v);
24 extern bool set_fast(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
25 extern bool set_slow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
26 extern bool set_shield(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
27 extern bool set_tsubureru(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
28 extern bool set_magicdef(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
29 extern bool set_blessed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
30 extern bool set_hero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
31 extern bool set_shero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
32 extern bool set_protevil(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
33 extern bool set_invuln(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
34 extern bool set_tim_invis(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
35 extern bool set_tim_infra(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
36 extern bool set_tim_regen(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
37 extern bool set_tim_stealth(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
38 extern bool set_lightspeed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
39 extern bool set_tim_levitation(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
40 extern bool set_tim_sh_touki(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
41 extern bool set_tim_sh_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
42 extern bool set_tim_sh_holy(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
43 extern bool set_tim_eyeeye(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
44 extern bool set_resist_magic(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
45 extern bool set_tim_reflect(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
46 extern bool set_multishadow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
47 extern bool set_dustrobe(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
48 extern bool set_kabenuke(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
49 extern bool set_tsuyoshi(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
50 extern bool set_ele_attack(player_type *creature_ptr, u32b attack_type, TIME_EFFECT v);
51 extern bool set_ele_immune(player_type *creature_ptr, u32b immune_type, TIME_EFFECT v);
52 extern bool set_oppose_acid(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
53 extern bool set_oppose_elec(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
54 extern bool set_oppose_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
55 extern bool set_oppose_cold(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
56 extern bool set_oppose_pois(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
57 extern bool set_stun(player_type *creature_ptr, TIME_EFFECT v);
58 extern bool set_cut(player_type *creature_ptr, TIME_EFFECT v);
59 extern bool set_food(player_type *creature_ptr, TIME_EFFECT v);
60 extern bool inc_stat(player_type *creature_ptr, int stat);
61 extern bool dec_stat(player_type *creature_ptr, int stat, int amount, int permanent);
62 extern bool res_stat(player_type *creature_ptr, int stat);
63 extern bool hp_player(player_type *creature_ptr, int num);
64 extern bool do_dec_stat(player_type *creature_ptr, int stat);
65 extern bool do_res_stat(player_type *creature_ptr, int stat);
66 extern bool do_inc_stat(player_type *creature_ptr, int stat);
67 extern bool restore_level(player_type *creature_ptr);
68 extern bool lose_all_info(player_type *creature_ptr);
69 extern void gain_exp_64(player_type *creature_ptr, s32b amount, u32b amount_frac);
70 extern void gain_exp(player_type *creature_ptr, s32b amount);
71 extern void calc_android_exp(player_type *creature_ptr);
72 extern void lose_exp(player_type *creature_ptr, s32b amount);
73 extern bool drain_exp(player_type *creature_ptr, s32b drain, s32b slip, int hold_exp_prob);
74 extern void do_poly_self(player_type *creature_ptr);
75 extern bool set_ultimate_res(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
76 extern bool set_tim_res_nether(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
77 extern bool set_tim_res_time(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
78 extern bool choose_ele_attack(player_type *creature_ptr);
79 extern bool choose_ele_immune(player_type *creature_ptr, TIME_EFFECT turn);
80 extern bool set_wraith_form(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
81 extern bool set_tim_esp(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
82 extern bool set_superstealth(player_type *creature_ptr, bool set);
83 extern void do_poly_wounds(player_type *creature_ptr);
84 extern void change_race(player_type *creature_ptr, CHARACTER_IDX new_race, concptr effect_msg);
85
86 extern const kamae kamae_shurui[MAX_KAMAE];
87 extern const kamae kata_shurui[MAX_KATA];