OSDN Git Service

[Refactor] #37353 targeting.h を作成して 宣言を移動.
authordeskull <deskull@users.sourceforge.jp>
Tue, 7 May 2019 14:35:47 +0000 (23:35 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Tue, 7 May 2019 14:35:47 +0000 (23:35 +0900)
37 files changed:
Hengband_vcs2017/Hengband/Hengband.vcxproj
Hengband_vcs2017/Hengband/Hengband.vcxproj.filters
src/cmd-activate.c
src/cmd-basic.c
src/cmd-item.c
src/cmd-magiceat.c
src/cmd-mane.c
src/cmd-pet.c
src/cmd-zaprod.c
src/cmd-zapwand.c
src/core.c
src/externs.h
src/mind.c
src/mspells3.c
src/mutation.c
src/player-move.c
src/racial.c
src/realm-arcane.c
src/realm-chaos.c
src/realm-crusade.c
src/realm-daemon.c
src/realm-death.c
src/realm-hex.c
src/realm-hissatsu.c
src/realm-life.c
src/realm-nature.c
src/realm-song.c
src/realm-sorcery.c
src/realm-trump.c
src/shoot.c
src/spells-object.c
src/spells-status.c
src/spells2.c
src/spells3.c
src/targeting.c
src/view-mainwindow.c
src/wizard2.c

index 991c907..b8c13b3 100644 (file)
     <ClInclude Include="..\..\src\spells-world.h" />\r
     <ClInclude Include="..\..\src\spells.h" />\r
     <ClInclude Include="..\..\src\store.h" />\r
+    <ClInclude Include="..\..\src\targeting.h" />\r
     <ClInclude Include="..\..\src\term.h" />\r
     <ClInclude Include="..\..\src\trap.h" />\r
     <ClInclude Include="..\..\src\util.h" />\r
index e947348..ebf15b7 100644 (file)
     <ClInclude Include="..\..\src\realm.h">
       <Filter>spells</Filter>
     </ClInclude>
+    <ClInclude Include="..\..\src\targeting.h">
+      <Filter>io</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <None Include="..\..\src\wall.bmp" />
index cddd228..79c36f1 100644 (file)
@@ -29,6 +29,7 @@
 #include "objectkind.h"
 #include "object-ego.h"
 #include "grid.h"
+#include "targeting.h"
 
 /*!
  * @brief 装備耐性に準じたブレス効果の選択テーブル /
index 93fb804..3e05f3f 100644 (file)
@@ -48,6 +48,7 @@
 #include "files.h"
 
 #include "view-mainwindow.h"
+#include "targeting.h"
 
 /*!
  * @brief フロア脱出時に出戻りが不可能だった場合に警告を加える処理
index 8a19a3d..cf95606 100644 (file)
@@ -39,7 +39,7 @@
 #include "spells.h"
 #include "objectkind.h"
 #include "autopick.h"
-
+#include "targeting.h"
 
 /*!
  * @brief 持ち物一覧を表示するコマンドのメインルーチン / Display p_ptr->inventory_list
index 60871ae..2840265 100644 (file)
@@ -64,7 +64,7 @@
 #include "spells.h"
 #include "player-class.h"
 #include "objectkind.h"
-
+#include "targeting.h"
 
 /*!
  * @brief 魔道具術師の取り込んだ魔力一覧から選択/閲覧する /
index aabd8e3..752b8ba 100644 (file)
@@ -25,6 +25,7 @@
 #include "player-status.h"
 #include "player-effects.h"
 #include "cmd-basic.h"
+#include "targeting.h"
 
 static int damage;
 
index 1c5e1cd..1d84f22 100644 (file)
@@ -17,6 +17,7 @@
 #include "cmd-pet.h"
 #include "cmd-basic.h"
 #include "view-mainwindow.h"
+#include "targeting.h"
 
 /*!
 * @brief プレイヤーの騎乗/下馬処理判定
index 1f50780..efcfca3 100644 (file)
@@ -11,6 +11,7 @@
 #include "spells-floor.h"
 #include "cmd-basic.h"
 #include "floor.h"
+#include "targeting.h"
 
 /*!
  * @brief ロッドの効果を発動する
index 83a8fe6..014c94d 100644 (file)
@@ -10,7 +10,7 @@
 #include "object-hook.h"
 #include "cmd-basic.h"
 #include "floor.h"
-
+#include "targeting.h"
 
 /*!
 * @brief 魔法棒の効果を発動する
index 80e85ed..9325382 100644 (file)
@@ -78,6 +78,7 @@
 #include "autopick.h"
 #include "save.h"
 #include "realm.h"
+#include "targeting.h"
 
  /*!
   * コピーライト情報 /
index 8024564..7f8118a 100644 (file)
@@ -196,19 +196,6 @@ extern void update_output(void);
 extern void print_monster_list(TERM_LEN x, TERM_LEN y, TERM_LEN max_lines);
 extern void update_playtime(void);
 
-/* xtra2.c */
-extern void panel_bounds_center(void);
-extern void verify_panel(void);
-extern bool target_able(MONSTER_IDX m_idx);
-extern bool target_okay(void);
-extern bool target_set(BIT_FLAGS mode);
-extern void target_set_prepare_look(void);
-extern bool get_aim_dir(DIRECTION *dp);
-extern bool get_hack_dir(DIRECTION *dp);
-extern bool get_direction(DIRECTION *dp, bool allow_under, bool with_steed);
-extern bool get_rep_dir(DIRECTION *dp, bool under);
-extern bool tgt_pt(POSITION *x, POSITION *y);
-
 /*
  * Hack -- conditional (or "bizarre") externs
  */
index 16c4c6c..27fab7e 100644 (file)
@@ -36,6 +36,7 @@
 #include "monster-status.h"
 #include "player-effects.h"
 #include "view-mainwindow.h"
+#include "targeting.h"
 
 /*! 特殊技能の一覧テーブル */
 mind_power const mind_powers[5] =
index 1be660f..e2f18c8 100644 (file)
@@ -25,6 +25,7 @@
 #include "spells.h"
 #include "cmd-basic.h"
 #include "player-effects.h"
+#include "targeting.h"
 
 #define pseudo_plev() (((p_ptr->lev + 40) * (p_ptr->lev + 40) - 1550) / 130) /*!< モンスター魔法をプレイヤーが使用する場合の換算レベル */
 
index a26fd7f..61d2651 100644 (file)
@@ -28,6 +28,7 @@
 #include "cmd-basic.h"
 #include "files.h"
 #include "floor.h"
+#include "targeting.h"
 
 /*!
  * @brief プレイヤーに突然変異を与える
index 2828e2e..fbf22fd 100644 (file)
 #include "world.h"
 #include "objectkind.h"
 #include "autopick.h"
+#include "targeting.h"
 
 
 #ifdef TRAVEL
index 0918029..525adb0 100644 (file)
@@ -30,6 +30,7 @@
 #include "spells.h"
 #include "cmd-spell.h"
 #include "realm-hex.h"
+#include "targeting.h"
 
 /*!
  * @brief 修行僧の構え設定処理
index a1fa21d..e11736d 100644 (file)
@@ -11,6 +11,7 @@
 #include "spells-status.h"
 #include "player-status.h"
 #include "player-effects.h"
+#include "targeting.h"
 
 /*!
 * @brief 秘術領域魔法の各処理を行う
index 05ef21a..91a81a4 100644 (file)
@@ -6,6 +6,7 @@
 #include "spells-summon.h"
 #include "spells-status.h"
 #include "spells.h"
+#include "targeting.h"
 
 /*!
 * @brief カオス領域魔法の各処理を行う
index 74957e2..917e5e6 100644 (file)
@@ -7,6 +7,7 @@
 #include "spells-summon.h"
 #include "spells-status.h"
 #include "player-effects.h"
+#include "targeting.h"
 
 
 
index d9e408c..db44393 100644 (file)
@@ -8,6 +8,7 @@
 #include "spells-floor.h"
 #include "spells-status.h"
 #include "player-effects.h"
+#include "targeting.h"
 
 /*!
 * @brief 悪魔領域魔法の各処理を行う
index 80053af..647cccc 100644 (file)
@@ -6,6 +6,7 @@
 #include "avatar.h"
 #include "player-status.h"
 #include "player-effects.h"
+#include "targeting.h"
 
 
 
index 2812dae..23afa7d 100644 (file)
@@ -32,6 +32,7 @@
 #include "realm-hex.h"
 #include "grid.h"
 #include "monsterrace.h"
+#include "targeting.h"
 
 #define MAX_KEEP 4 /*!<呪術の最大詠唱数 */
 
index fe26cb1..14f6cb5 100644 (file)
@@ -15,6 +15,7 @@
 #include "feature.h"
 #include "spells.h"
 #include "grid.h"
+#include "targeting.h"
 
 /*!
 * @brief 剣術の各処理を行う
index 65fdc51..6ebfbed 100644 (file)
@@ -6,6 +6,7 @@
 #include "player-status.h"
 #include "player-effects.h"
 #include "floor.h"
+#include "targeting.h"
 
 /*!
 * @brief 生命領域魔法の各処理を行う
index d4f989a..e99cbc4 100644 (file)
@@ -9,6 +9,7 @@
 #include "avatar.h"
 #include "spells-floor.h"
 #include "player-effects.h"
+#include "targeting.h"
 
 
 /*!
index a3a5bca..706d1f7 100644 (file)
@@ -6,6 +6,7 @@
 #include "spells-status.h"
 #include "spells-floor.h"
 #include "player-effects.h"
+#include "targeting.h"
 
 /*!
 * @brief 歌の開始を処理する / Start singing if the player is a Bard
index d7de405..c11fb28 100644 (file)
@@ -9,6 +9,7 @@
 #include "spells-status.h"
 #include "spells-floor.h"
 #include "player-effects.h"
+#include "targeting.h"
 
 /*!
 * @brief 仙術領域魔法の各処理を行う
index e062893..3a44960 100644 (file)
@@ -7,6 +7,7 @@
 #include "spells-summon.h"
 #include "spells-status.h"
 #include "player-effects.h"
+#include "targeting.h"
 
 
 /*!
index 2108624..0a88475 100644 (file)
@@ -18,6 +18,7 @@
 #include "snipe.h"
 #include "view-mainwindow.h"
 #include "objectkind.h"
+#include "targeting.h"
 
 /*!
  * @brief 矢弾を射撃した際のスレイ倍率をかけた結果を返す /
index fceea7b..0a95758 100644 (file)
@@ -16,6 +16,7 @@
 #include "player-class.h"
 #include "objectkind.h"
 #include "autopick.h"
+#include "targeting.h"
 
 
 typedef struct
index a18c70e..65d1130 100644 (file)
@@ -11,6 +11,7 @@
 #include "cmd-spell.h"
 #include "player-effects.h"
 #include "objectkind.h"
+#include "targeting.h"
 
 /*!
  * @brief モンスター回復処理
index a6967f6..9c25fa2 100644 (file)
@@ -47,6 +47,7 @@
 #include "view-mainwindow.h"
 #include "objectkind.h"
 #include "monsterrace.h"
+#include "targeting.h"
 
 /*!
  * @brief プレイヤー周辺の地形を感知する
index bedb37b..f516d77 100644 (file)
@@ -48,6 +48,7 @@
 #include "world.h"
 #include "objectkind.h"
 #include "autopick.h"
+#include "targeting.h"
 
 
 /*! テレポート先探索の試行数 / Maximum number of tries for teleporting */
index e948ec2..0e8fdb9 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "angband.h"
 #include "util.h"
+#include "targeting.h"
 
 #include "bldg.h"
 #include "cmd-pet.h"
index 3c13bdf..a69ab91 100644 (file)
@@ -38,6 +38,7 @@
 #include "floor-town.h"
 #include "feature.h"
 #include "objectkind.h"
+#include "targeting.h"
 
 static int feat_priority; /*!< マップ縮小表示時に表示すべき地形の優先度を保管する */
 static byte display_autopick; /*!< 自動拾い状態の設定フラグ */
index f952a26..d326ba1 100644 (file)
@@ -43,6 +43,7 @@
 #include "monster-spell.h"
 #include "bldg.h"
 #include "objectkind.h"
+#include "targeting.h"
 
 #ifdef ALLOW_WIZARD