OSDN Git Service

[Refactor] #39963 Moved SPOP_* from spells.h to spells-util.h
[hengband/hengband.git] / src / spells-status.h
index a7c4d81..40e1c7f 100644 (file)
@@ -1,28 +1,31 @@
-
-extern bool heal_monster(player_type *caster_ptr, DIRECTION dir, HIT_POINT dam);
-extern bool speed_monster(player_type *caster_ptr, DIRECTION dir, int power);
-extern bool slow_monster(player_type *caster_ptr, DIRECTION dir, int power);
-extern bool sleep_monster(player_type *caster_ptr, DIRECTION dir, int power);
-extern bool stasis_monster(player_type *caster_ptr, DIRECTION dir);    /* Like sleep, affects undead as well */
-extern bool stasis_evil(player_type *caster_ptr, DIRECTION dir);    /* Like sleep, affects undead as well */
-extern bool confuse_monster(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev);
-extern bool stun_monster(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev);
-extern bool fear_monster(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev);
-extern bool poly_monster(player_type *caster_ptr, DIRECTION dir, int power);
-extern bool clone_monster(player_type *caster_ptr, DIRECTION dir);
-extern bool time_walk(player_type *creature_ptr);
-extern void roll_hitdice(player_type *creature_ptr, SPOP_FLAGS options);
-extern bool_hack life_stream(player_type *creature_ptr, bool_hack message, bool_hack virtue_change);
-extern bool_hack heroism(player_type *creature_ptr, int base);
-extern bool_hack berserk(player_type *creature_ptr, int base);
-extern bool_hack cure_light_wounds(player_type *creature_ptr, DICE_NUMBER dice, DICE_SID sides);
-extern bool_hack cure_serious_wounds(player_type *creature_ptr, DICE_NUMBER dice, DICE_SID sides);
-extern bool_hack cure_critical_wounds(player_type *creature_ptr, HIT_POINT pow);
-extern bool_hack true_healing(player_type *creature_ptr, HIT_POINT pow);
-extern bool_hack restore_mana(player_type *creature_ptr, bool_hack magic_eater);
-extern bool restore_all_status(player_type *creature_ptr);
+#pragma once
 
-extern bool fishing(player_type *creature_ptr);
-extern bool cosmic_cast_off(player_type *creature_ptr, object_type *o_ptr);
-extern void apply_nexus(monster_type *m_ptr, player_type *target_ptr);
-extern void status_shuffle(player_type *creature_ptr);
+#include "spell/spells-util.h"
+
+bool heal_monster(player_type *caster_ptr, DIRECTION dir, HIT_POINT dam);
+bool speed_monster(player_type *caster_ptr, DIRECTION dir, int power);
+bool slow_monster(player_type *caster_ptr, DIRECTION dir, int power);
+bool sleep_monster(player_type *caster_ptr, DIRECTION dir, int power);
+bool stasis_monster(player_type *caster_ptr, DIRECTION dir);    /* Like sleep, affects undead as well */
+bool stasis_evil(player_type *caster_ptr, DIRECTION dir);    /* Like sleep, affects undead as well */
+bool confuse_monster(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev);
+bool stun_monster(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev);
+bool fear_monster(player_type *caster_ptr, DIRECTION dir, PLAYER_LEVEL plev);
+bool poly_monster(player_type *caster_ptr, DIRECTION dir, int power);
+bool clone_monster(player_type *caster_ptr, DIRECTION dir);
+bool time_walk(player_type *creature_ptr);
+void roll_hitdice(player_type *creature_ptr, spell_operation options);
+bool life_stream(player_type *creature_ptr, bool message, bool virtue_change);
+bool heroism(player_type *creature_ptr, int base);
+bool berserk(player_type *creature_ptr, int base);
+bool cure_light_wounds(player_type *creature_ptr, DICE_NUMBER dice, DICE_SID sides);
+bool cure_serious_wounds(player_type *creature_ptr, DICE_NUMBER dice, DICE_SID sides);
+bool cure_critical_wounds(player_type *creature_ptr, HIT_POINT pow);
+bool true_healing(player_type *creature_ptr, HIT_POINT pow);
+bool restore_mana(player_type *creature_ptr, bool magic_eater);
+bool restore_all_status(player_type *creature_ptr);
+
+bool fishing(player_type *creature_ptr);
+bool cosmic_cast_off(player_type *creature_ptr, object_type *o_ptr);
+void apply_nexus(monster_type *m_ptr, player_type *target_ptr);
+void status_shuffle(player_type *creature_ptr);