#pragma once

typedef struct kamae kamae;

struct kamae
{
	concptr desc;       /* A verbose kamae description */
	PLAYER_LEVEL min_level;  /* Minimum level to use */
	concptr info;
};

/* effects.c */

extern void set_action(player_type *creature_ptr, ACTION_IDX typ);
extern void reset_tim_flags(player_type *creature_ptr);
extern void dispel_player(player_type *creature_ptr);
extern bool set_mimic(player_type *creature_ptr, TIME_EFFECT v, MIMIC_RACE_IDX p, bool do_dec);
extern bool set_blind(player_type *creature_ptr, TIME_EFFECT v);
extern bool set_confused(player_type *creature_ptr, TIME_EFFECT v);
extern bool set_poisoned(player_type *creature_ptr, TIME_EFFECT v);
extern bool set_afraid(player_type *creature_ptr, TIME_EFFECT v);
extern bool set_paralyzed(player_type *creature_ptr, TIME_EFFECT v);
extern bool set_image(player_type *creature_ptr, TIME_EFFECT v);
extern bool set_fast(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_slow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_shield(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tsubureru(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_magicdef(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_blessed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_hero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_shero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_protevil(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_invuln(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tim_invis(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tim_infra(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tim_regen(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tim_stealth(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_lightspeed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tim_levitation(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tim_sh_touki(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tim_sh_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tim_sh_holy(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tim_eyeeye(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_resist_magic(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tim_reflect(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_multishadow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_dustrobe(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_kabenuke(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tsuyoshi(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_ele_attack(player_type *creature_ptr, u32b attack_type, TIME_EFFECT v);
extern bool set_ele_immune(player_type *creature_ptr, u32b immune_type, TIME_EFFECT v);
extern bool set_oppose_acid(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_oppose_elec(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_oppose_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_oppose_cold(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_oppose_pois(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_stun(player_type *creature_ptr, TIME_EFFECT v);
extern bool set_cut(player_type *creature_ptr, TIME_EFFECT v);
extern bool set_food(player_type *creature_ptr, TIME_EFFECT v);
extern bool inc_stat(player_type *creature_ptr, int stat);
extern bool dec_stat(player_type *creature_ptr, int stat, int amount, int permanent);
extern bool res_stat(player_type *creature_ptr, int stat);
extern bool hp_player(player_type *creature_ptr, int num);
extern bool do_dec_stat(player_type *creature_ptr, int stat);
extern bool do_res_stat(player_type *creature_ptr, int stat);
extern bool do_inc_stat(player_type *creature_ptr, int stat);
extern bool restore_level(player_type *creature_ptr);
extern bool lose_all_info(player_type *creature_ptr);
extern void gain_exp_64(player_type *creature_ptr, s32b amount, u32b amount_frac);
extern void gain_exp(player_type *creature_ptr, s32b amount);
extern void calc_android_exp(player_type *creature_ptr);
extern void lose_exp(player_type *creature_ptr, s32b amount);
extern bool drain_exp(player_type *creature_ptr, s32b drain, s32b slip, int hold_exp_prob);
extern void do_poly_self(player_type *creature_ptr);
extern bool set_ultimate_res(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tim_res_nether(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tim_res_time(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool choose_ele_attack(player_type *creature_ptr);
extern bool choose_ele_immune(player_type *creature_ptr, TIME_EFFECT turn);
extern bool set_wraith_form(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_tim_esp(player_type *creature_ptr, TIME_EFFECT v, bool do_dec);
extern bool set_superstealth(player_type *creature_ptr, bool set);
extern void do_poly_wounds(player_type *creature_ptr);
extern void change_race(player_type *creature_ptr, CHARACTER_IDX new_race, concptr effect_msg);
extern bool_hack drop_weapons(player_type *creature_ptr);

extern const kamae kamae_shurui[MAX_KAMAE];
extern const kamae kata_shurui[MAX_KATA];
