OSDN Git Service

[Refactor] #37353 do_spell() の宣言を cmd-spell.h に移動。
authordeskull <deskull@users.sourceforge.jp>
Wed, 17 Apr 2019 14:20:34 +0000 (23:20 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Wed, 17 Apr 2019 14:20:34 +0000 (23:20 +0900)
src/cmd-hissatsu.c
src/cmd-spell.h
src/cmd4.c
src/externs.h
src/player-status.c
src/spells-status.c
src/spells3.c

index 7447f8e..ba2c853 100644 (file)
@@ -15,6 +15,7 @@
 #include "player-status.h"
 
 #include "cmd-basic.h"
+#include "cmd-spell.h"
 
 #define TECHNIC_HISSATSU (REALM_HISSATSU - MIN_TECHNIC)
 
index 9e1ebef..fc87ca6 100644 (file)
@@ -5,6 +5,8 @@
 #define KWD_HEAL     _("回復:", "heal ")
 #define KWD_RANDOM   _("ランダム", "random")
 
+extern concptr do_spell(REALM_IDX realm, SPELL_IDX spell, BIT_FLAGS mode);
+
 extern concptr info_string_dice(concptr str, DICE_NUMBER dice, DICE_SID sides, int base);
 extern concptr info_damage(DICE_NUMBER dice, DICE_SID sides, int base);
 extern concptr info_duration(int base, DICE_SID sides);
index 933d336..fb5b2c4 100644 (file)
@@ -41,6 +41,7 @@
 
 #include "angband.h"
 #include "cmd-pet.h"
+#include "cmd-spell.h"
 #include "world.h"
 #include "player-status.h"
 #include "sort.h"
index 498d8e8..edd9d9e 100644 (file)
@@ -489,7 +489,6 @@ extern void do_cmd_time(void);
 extern void do_cmd_suicide(void);
 
 /* cmd-spell.c */
-extern concptr do_spell(REALM_IDX realm, SPELL_IDX spell, BIT_FLAGS mode);
 extern bool trump_summoning(int num, bool pet, POSITION y, POSITION x, DEPTH lev, int type, BIT_FLAGS mode);
 
 /* dungeon.c */
index f65d56a..68fef61 100644 (file)
@@ -13,6 +13,7 @@
 #include "patron.h"
 #include "realm-hex.h"
 #include "cmd-pet.h"
+#include "cmd-spell.h"
 
 /* Hack, monk armour */
 static bool monk_armour_aux;
index 33deaa3..2ffea09 100644 (file)
@@ -6,6 +6,7 @@
 #include "spells-status.h"
 #include "spells.h"
 #include "monster.h"
+#include "cmd-spell.h"
 
 /*!
  * @brief モンスター回復処理
index 3d51b17..7ddb4ae 100644 (file)
@@ -28,6 +28,7 @@
 #include "grid.h"
 #include "monster-status.h"
 #include "monster-spell.h"
+#include "cmd-spell.h"
 
 
 /*! テレポート先探索の試行数 / Maximum number of tries for teleporting */