OSDN Git Service

[Refactor] #37353 cmd-hissatsu.h を作成して変数宣言移動。
authordeskull <deskull@users.sourceforge.jp>
Mon, 1 Apr 2019 23:54:52 +0000 (08:54 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Tue, 2 Apr 2019 00:03:40 +0000 (09:03 +0900)
Hengband_vcs2017/Hengband/Hengband.vcxproj
Hengband_vcs2017/Hengband/Hengband.vcxproj.filters
src/Makefile.am
src/cmd-hissatsu.h [new file with mode: 0644]
src/dungeon.c
src/externs.h

index 89174d2..fc7fdbf 100644 (file)
     <ClInclude Include="..\..\src\artifact.h" />\r
     <ClInclude Include="..\..\src\avatar.h" />\r
     <ClInclude Include="..\..\src\chest.h" />\r
+    <ClInclude Include="..\..\src\cmd-hissatsu.h" />\r
     <ClInclude Include="..\..\src\cmd-item.h" />\r
     <ClInclude Include="..\..\src\cmd-magiceat.h" />\r
     <ClInclude Include="..\..\src\cmd-pet.h" />\r
index 534e694..badf65e 100644 (file)
     <ClInclude Include="..\..\src\monster-spell.h">
       <Filter>monster</Filter>
     </ClInclude>
+    <ClInclude Include="..\..\src\cmd-hissatsu.h">
+      <Filter>cmd</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <ResourceCompile Include="..\..\src\angband.rc" />
index d5b0aa9..e102ef5 100644 (file)
@@ -16,7 +16,7 @@ hengband_SOURCES = \
        cmd-item.c cmd-item.h cmd-magiceat.c cmd-magiceat.h cmd-pet.c cmd-pet.h \
        cmd-quaff.c cmd-quaff.h cmd-read.c cmd-read.h cmd-spell.c cmd-spell.h \
        cmd-usestaff.c cmd-usestaff.h cmd-zaprod.c cmd-zaprod.h cmd-zapwand.c \
-       cmd-zapwand.h cmd-smith.c cmd-smith.h cmd-hissatsu.c\
+       cmd-zapwand.h cmd-smith.c cmd-smith.h cmd-hissatsu.c cmd-hissatsu.h\
        \
        defines.h dungeon.c effects.c externs.h files.c flavor.c \
        \
diff --git a/src/cmd-hissatsu.h b/src/cmd-hissatsu.h
new file mode 100644 (file)
index 0000000..fc4cea2
--- /dev/null
@@ -0,0 +1,5 @@
+#pragma once
+/* hissatsu.c */
+
+extern void do_cmd_hissatsu(void);
+extern void do_cmd_gain_hissatsu(void);
index c406c63..430e853 100644 (file)
@@ -13,6 +13,7 @@
 #include "angband.h"
 #include "cmd-activate.h"
 #include "cmd-eat.h"
+#include "cmd-hissatsu.h"
 #include "cmd-item.h"
 #include "cmd-magiceat.h"
 #include "cmd-quaff.h"
index f8559e7..734d809 100644 (file)
@@ -1188,10 +1188,6 @@ extern HIT_POINT monspell_damage(int SPELL_NUM, MONSTER_IDX m_idx, int TYPE);
 extern HIT_POINT monspell_race_damage(int SPELL_NUM, MONRACE_IDX r_idx, int TYPE);
 extern HIT_POINT monspell_bluemage_damage(int SPELL_NUM, PLAYER_LEVEL plev, int TYPE);
 
-/* hissatsu.c */
-extern void do_cmd_hissatsu(void);
-extern void do_cmd_gain_hissatsu(void);
-
 
 /*
  * Hack -- conditional (or "bizarre") externs