OSDN Git Service

[Refactor] #37481 melee.hを定義。 \ Add melee.h.
authorDeskull <deskull@users.sourceforge.jp>
Sun, 23 Dec 2018 08:54:13 +0000 (17:54 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sun, 23 Dec 2018 08:54:13 +0000 (17:54 +0900)
15 files changed:
Hengband_vcs2017/Hengband/Hengband.vcxproj
src/Makefile.am
src/bldg.c
src/cmd-pet.c
src/cmd1.c
src/cmd2.c
src/externs.h
src/melee1.c
src/mind.c
src/monster-process.c
src/racial.c
src/realm-hissatsu.c
src/spells1.c
src/spells2.c
src/spells3.c

index 006ed9d..f67a20e 100644 (file)
     <ClInclude Include="..\..\src\history.h" />\r
     <ClInclude Include="..\..\src\init.h" />\r
     <ClInclude Include="..\..\src\kajitips.h" />\r
+    <ClInclude Include="..\..\src\melee.h" />\r
     <ClInclude Include="..\..\src\mindtips.h" />\r
     <ClInclude Include="..\..\src\monster-status.h" />\r
     <ClInclude Include="..\..\src\monsterrace-hook.h" />\r
index f84e01d..161b5e6 100644 (file)
@@ -17,7 +17,8 @@ hengband_SOURCES = \
        generate.h grid.c grid.h h-basic.h h-config.h h-define.h hissatsu.c \
        history.h history.c \
        h-system.h h-type.h inet.c init1.c init2.c init.h japanese.c load.c \
-       main.c main-x11.c main-gcu.c mane.c melee1.c mind.c \
+       main.c main-x11.c main-gcu.c mane.c \
+       melee.h melee1.c mind.c \
        monsterrace-hook.c monsterrace-hook.h monster-process.c \
        monster-process.h monster-status.c monster-status.h monster1.c \
        monster2.c mspells1.c mspells2.c mspells3.c mspells4.c mutation.c \
index 7cc9c92..82f1798 100644 (file)
@@ -14,6 +14,8 @@
 
 #include "angband.h"
 #include "object-hook.h"
+#include "melee.h"
+
 
 /*!
  * ループ中で / hack as in leave_store in store.c
index d74baff..4c2dea2 100644 (file)
@@ -1,4 +1,5 @@
 #include "angband.h"
+#include "melee.h"
 
 /*!
 * @brief プレイヤーの騎乗/下馬処理判定
index 5efc9be..415107e 100644 (file)
  */
 
 #include "angband.h"
+#include "melee.h"
 #include "trap.h"
 
 
index dd1acac..8bb63af 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "angband.h"
 #include "chest.h"
+#include "melee.h"
 #include "object-hook.h"
 
 /*!
@@ -806,10 +807,7 @@ void do_cmd_open(void)
                else if (c_ptr->m_idx && p_ptr->riding != c_ptr->m_idx)
                {
                        p_ptr->energy_use = 100;
-
                        msg_print(_("モンスターが立ちふさがっている!", "There is a monster in the way!"));
-                       
-                       /* Attack */
                        py_attack(y, x, 0);
                }
 
index 66583b2..c639cc2 100644 (file)
@@ -522,7 +522,6 @@ extern bool cave_monster_teleportable_bold(MONSTER_IDX m_idx, POSITION y, POSITI
 extern bool cave_player_teleportable_bold(POSITION y, POSITION x, BIT_FLAGS mode);
 
 /* cmd1.c */
-extern bool test_hit_norm(int chance, ARMOUR_CLASS ac, int vis);
 extern HIT_POINT critical_shot(WEIGHT weight, int plus_ammo, int plus_bow, HIT_POINT dam);
 extern HIT_POINT tot_dam_aux(object_type *o_ptr, HIT_POINT tdam, monster_type *m_ptr, BIT_FLAGS mode, bool thrown);
 extern void search(void);
@@ -697,14 +696,8 @@ extern cptr get_check_sum(void);
 extern errr rd_savefile_new(void);
 extern bool load_floor(saved_floor_type *sf_ptr, BIT_FLAGS mode);
 
-/* melee1.c */
-PERCENTAGE hit_chance(HIT_PROB to_h, ARMOUR_CLASS ac);
-
 /* monster-process.c */
 extern bool test_hit_fire(int chance, monster_type *m_ptr, int vis, char* o_name);
-extern HIT_POINT critical_norm(WEIGHT weight, int plus, HIT_POINT dam, s16b meichuu, BIT_FLAGS mode);
-extern bool py_attack(POSITION y, POSITION x, BIT_FLAGS mode);
-extern bool make_attack_normal(MONSTER_IDX m_idx);
 extern void process_monsters(void);
 extern void process_monster(MONSTER_IDX m_idx);
 extern int get_mproc_idx(MONSTER_IDX m_idx, int mproc_type);
index 30846f8..cd44772 100644 (file)
@@ -207,8 +207,6 @@ static int check_hit(int power, DEPTH level, int stun)
        return (FALSE);
 }
 
-
-
 /*! モンスターの侮辱行為メッセージテーブル / Hack -- possible "insult" messages */
 static cptr desc_insult[] =
 {
@@ -238,7 +236,6 @@ static cptr desc_insult[] =
 
 };
 
-
 /*! マゴットのぼやきメッセージテーブル / Hack -- possible "insult" messages */
 static cptr desc_moan[] =
 {
@@ -256,7 +253,6 @@ static cptr desc_moan[] =
 
 };
 
-
 /*!
 * @brief 敵オーラによるプレイヤーのダメージ処理(補助)
 * @param m_ptr オーラを持つモンスターの構造体参照ポインタ
@@ -294,9 +290,6 @@ static void touch_zap_player_aux(monster_type *m_ptr, bool immune, int flags_off
        }
 }
 
-
-
-
 /*!
 * @brief 敵オーラによるプレイヤーのダメージ処理(メイン)
 * @param m_ptr オーラを持つモンスターの構造体参照ポインタ
@@ -1340,7 +1333,6 @@ static void py_attack_aux(POSITION y, POSITION x, bool *fear, bool *mdeath, s16b
        }
 }
 
-
 /*!
 * @brief プレイヤーの打撃処理メインルーチン
 * @param y 攻撃目標のY座標
@@ -1535,7 +1527,6 @@ bool py_attack(POSITION y, POSITION x, BIT_FLAGS mode)
        return mdeath;
 }
 
-
 /*!
  * @brief モンスターからプレイヤーへの打撃処理 / Attack the player via physical attacks.
  * @param m_idx 打撃を行うモンスターのID
index ac8cf2f..76daf0c 100644 (file)
@@ -14,9 +14,8 @@
  * 特殊技能を揃えて実装している。
  */
 
-
-
 #include "angband.h"
+#include "melee.h"
 
 /*! 特殊技能の一覧テーブル */
 mind_power const mind_powers[5] =
index b070164..e583a8a 100644 (file)
@@ -16,6 +16,7 @@
 #include "angband.h"
 #include "cmd-pet.h"
 #include "monsterrace-hook.h"
+#include "melee.h"
 
 
 /*!
index 6d388a4..a0f778c 100644 (file)
@@ -14,7 +14,7 @@
 #include "cmd-magiceat.h"
 #include "cmd-zapwand.h"
 #include "cmd-pet.h"
-
+#include "melee.h"
 #include "object-hook.h"
 
 /*!
index 19c2d88..3668b78 100644 (file)
@@ -1,5 +1,6 @@
 #include "angband.h"
 #include "cmd-spell.h"
+#include "melee.h"
 #include "monsterrace-hook.h"
 
 /*!
index 7951195..41d8e48 100644 (file)
@@ -17,6 +17,7 @@
 #include "object-curse.h"
 #include "player-damage.h"
 #include "monsterrace-hook.h"
+#include "melee.h"
 
 
 static int rakubadam_m; /*!< 振り落とされた際のダメージ量 */
index 74cb059..4fc42ac 100644 (file)
@@ -15,6 +15,7 @@
 #include "grid.h"
 #include "trap.h"
 #include "monsterrace-hook.h"
+#include "melee.h"
 
 
 /*!
index 3612405..e69cb77 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "angband.h"
 #include "object-hook.h"
+#include "melee.h"
 
 /*! テレポート先探索の試行数 / Maximum number of tries for teleporting */
 #define MAX_TRIES 100