OSDN Git Service

[Refactor] #37353 externs.h の宣言いくつかを shoot.h へ移動。 / Move some externs.h declarations...
authorDeskull <deskull@users.sourceforge.jp>
Tue, 29 Jan 2019 04:19:18 +0000 (13:19 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Tue, 29 Jan 2019 04:19:18 +0000 (13:19 +0900)
src/Makefile.am
src/externs.h
src/files.c
src/flavor.c
src/shoot.c
src/shoot.h [new file with mode: 0644]

index adcda3b..61e64ac 100644 (file)
@@ -57,7 +57,7 @@ hengband_SOURCES = \
        report.c rooms.c rooms-city.c rooms-city.h rooms-fractal.c rooms-fractal.h \
        rooms.h rooms-normal.c rooms-normal.h rooms-pitnest.c rooms-pitnest.h \
        rooms-special.c rooms-special.h rooms-trap.c rooms-trap.h rooms-vault.c \
-       rooms-vault.h save.c scores.c selfinfo.c selfinfo.h shoot.c snipe.c \
+       rooms-vault.h save.c scores.c selfinfo.c selfinfo.h shoot.c shoot.h snipe.c \
        \
        rumor.h rumor.c \
        \
index 209c29c..88693c3 100644 (file)
@@ -1495,6 +1495,3 @@ extern void kamaenaoshi(INVENTORY_IDX item);
 extern bool ang_sort_comp_hook(vptr u, vptr v, int a, int b);
 extern void ang_sort_swap_hook(vptr u, vptr v, int a, int b);
 
-/* shoot.c */
-extern ENERGY bow_energy(OBJECT_SUBTYPE_VALUE sval);
-extern int bow_tmul(OBJECT_SUBTYPE_VALUE sval);
index e75b317..f13c8d3 100644 (file)
@@ -22,6 +22,7 @@
 #include "store.h"
 #include "artifact.h"
 #include "avatar.h"
+#include "shoot.h"
 
 
 /*
index 40a93fc..f0c3fec 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "angband.h"
 #include "player-status.h"
+#include "shoot.h"
 
 /*!
  * @brief 最初から簡易な名称が明らかになるベースアイテムの判定。 /  Certain items, if aware, are known instantly 
index 7fa8fe6..f4c6bfc 100644 (file)
@@ -4,6 +4,7 @@
 #include "artifact.h"
 #include "avatar.h"
 
+#include "shoot.h"
 /*!
  * @brief 矢弾を射撃した際のスレイ倍率をかけた結果を返す /
  * Determines the odds of an object breaking when thrown at a monster
diff --git a/src/shoot.h b/src/shoot.h
new file mode 100644 (file)
index 0000000..205a89f
--- /dev/null
@@ -0,0 +1,9 @@
+/*!
+ * @file shoot.c
+ */
+
+
+#pragma once
+
+extern ENERGY bow_energy(OBJECT_SUBTYPE_VALUE sval);
+extern int bow_tmul(OBJECT_SUBTYPE_VALUE sval);