OSDN Git Service

[Refactor] #37353 PROJECT_* 定義を新規ファイル projection.h へ移動。 / Move PROJECT_* definition...
authorDeskull <deskull@users.sourceforge.jp>
Tue, 15 Jan 2019 14:26:05 +0000 (23:26 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Tue, 15 Jan 2019 14:26:05 +0000 (23:26 +0900)
35 files changed:
Hengband_vcs2017/Hengband/Hengband.vcxproj
src/Makefile.am
src/cave.c
src/cmd-activate.c
src/cmd-usestaff.c
src/cmd1.c
src/cmd2.c
src/defines.h
src/melee1.c
src/mind.c
src/monster-process.c
src/monster2.c
src/mspells1.c
src/mspells2.c
src/mspells3.c
src/mspells4.c
src/projection.h [new file with mode: 0644]
src/realm-arcane.c
src/realm-chaos.c
src/realm-craft.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/spells1.c
src/spells2.c
src/spells3.c
src/trap.c
src/xtra2.c

index 03be4b7..1bdde7b 100644 (file)
     <ClInclude Include="..\..\src\sort.h" />\r
     <ClInclude Include="..\..\src\spells-summon.h" />\r
     <ClInclude Include="..\..\src\floor-streams.h" />\r
+    <ClInclude Include="..\..\src\projection.h" />\r
     <ClInclude Include="..\..\src\store.h" />\r
     <ClInclude Include="..\..\src\trap.h" />\r
     <ClInclude Include="..\..\src\types.h" />\r
index 4a3c039..4747cb9 100644 (file)
@@ -27,6 +27,9 @@ hengband_SOURCES = \
        object-curse.c object-curse.h \
        object-hook.c object-hook.h object1.c object2.c \
        objectkind-hook.c objectkind-hook.h obj_kind.c \
+
+       projection.h \
+
        player-damage.c player-damage.h player-status.c player-status.h \
        racial.c \
        realm-arcane.c \
@@ -39,7 +42,9 @@ hengband_SOURCES = \
        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 \
+
        spells1.c spells2.c spells3.c spells-summon.c spells-summon.h \
+
        sort.c sort.h \
        store.h store.c tables.c trap.c trap.h types.h util.c \
        variable.c wild.c wizard1.c wizard2.c \
index 923190a..5a0118f 100644 (file)
@@ -18,6 +18,7 @@
 
 #include "angband.h"
 #include "world.h"
+#include "projection.h"
 
 static byte display_autopick; /*!< 自動拾い状態の設定フラグ */
 static int match_autopick;
index badf09e..a316fb6 100644 (file)
@@ -11,6 +11,7 @@
 #include "object-hook.h"
 #include "spells-summon.h"
 #include "sort.h"
+#include "projection.h"
 
 /*!
 * @brief ペット入りモンスターボールをソートするための比較関数
index f2375c5..e5e1628 100644 (file)
@@ -1,4 +1,5 @@
 #include "angband.h"\r
+#include "projection.h"\r
 \r
 \r
 \r
index 7b18fc4..33b3d9e 100644 (file)
 #include "angband.h"
 #include "melee.h"
 #include "trap.h"
+#include "projection.h"
 
 
 
index d7536e9..cd434a8 100644 (file)
@@ -15,6 +15,7 @@
 #include "floor.h"
 #include "melee.h"
 #include "object-hook.h"
+#include "projection.h"
 
 /*!
  * @brief フロア脱出時に出戻りが不可能だった場合に警告を加える処理
index df0a9b5..3faa7be 100644 (file)
 
 
 /*
- * project()関数に用いられる、遠隔攻撃特性ビットフラグ / Bit flags for the "project()" function
- */
-#define PROJECT_JUMP        0x0001 /*!< 遠隔攻撃特性: 発動者からの軌跡を持たず、指定地点に直接発生する(予め置いたトラップ、上空からの発生などのイメージ) / Jump directly to the target location (this is a hack) */
-#define PROJECT_BEAM        0x0002 /*!< 遠隔攻撃特性: ビーム範囲を持つ。 / Work as a beam weapon (affect every grid passed through) */
-#define PROJECT_THRU        0x0004 /*!< 遠隔攻撃特性: 目標地点に到達しても射程と遮蔽の限り引き延ばす。 / Continue "through" the target (used for "bolts"/"beams") */
-#define PROJECT_STOP        0x0008 /*!< 遠隔攻撃特性: 道中にプレイヤーかモンスターがいた時点で到達地点を更新して停止する(壁や森はPROJECT_DISIがない限り最初から貫通しない) */
-#define PROJECT_GRID        0x0010 /*!< 遠隔攻撃特性: 射程内の地形に影響を及ぼす / Affect each grid in the "blast area" in some way */
-#define PROJECT_ITEM        0x0020 /*!< 遠隔攻撃特性: 射程内のアイテムに影響を及ぼす / Affect each object in the "blast area" in some way */
-#define PROJECT_KILL        0x0040 /*!< 遠隔攻撃特性: 射程内のモンスターに影響を及ぼす / Affect each monster in the "blast area" in some way */
-#define PROJECT_HIDE        0x0080 /*!< 遠隔攻撃特性: / Hack -- disable "visual" feedback from projection */
-#define PROJECT_DISI        0x0100 /*!< 遠隔攻撃特性: / Disintegrate non-permanent features */
-#define PROJECT_PLAYER      0x0200 /*!< 遠隔攻撃特性: / Main target is player (used for riding player) */
-#define PROJECT_AIMED       0x0400 /*!< 遠隔攻撃特性: / Target is only player or monster, so don't affect another. Depend on PROJECT_PLAYER. (used for minimum (rad == 0) balls on riding player) */
-#define PROJECT_REFLECTABLE 0x0800 /*!< 遠隔攻撃特性: 反射可能(ボルト系魔法に利用) / Refrectable spell attacks (used for "bolts") */
-#define PROJECT_NO_HANGEKI  0x1000 /*!< 遠隔攻撃特性: / Avoid counter attacks of monsters */
-#define PROJECT_PATH        0x2000 /*!< 遠隔攻撃特性: / Only used for printing project path */
-#define PROJECT_FAST        0x4000 /*!< 遠隔攻撃特性: / Hide "visual" of flying bolts until blast */
-#define PROJECT_LOS         0x8000 /*!< 遠隔攻撃特性: /  */
-
-
-/*
  * Special caster ID for project()
  */
 #define PROJECT_WHO_UNCTRL_POWER -1 /*!< 魔法効果の自然発生要因: 名状し難い力の解放 */
index 2ec4458..13b90f1 100644 (file)
@@ -16,6 +16,7 @@
 #include "player-damage.h"
 #include "monsterrace-hook.h"
 #include "melee.h"
+#include "projection.h"
 
 
 
index fe87e89..9563ffa 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "angband.h"
 #include "melee.h"
+#include "projection.h"
 
 /*! 特殊技能の一覧テーブル */
 mind_power const mind_powers[5] =
index c0c616a..83994c9 100644 (file)
@@ -17,6 +17,7 @@
 #include "cmd-pet.h"
 #include "monsterrace-hook.h"
 #include "melee.h"
+#include "projection.h"
 
 
 /*!
index 87c49ff..7b6acb0 100644 (file)
@@ -14,6 +14,7 @@
 #include "cmd-pet.h"
 #include "monsterrace-hook.h"
 #include "monster-status.h"
+#include "projection.h"
 
 #define HORDE_NOGOOD 0x01 /*!< (未実装フラグ)HORDE生成でGOODなモンスターの生成を禁止する? */
 #define HORDE_NOEVIL 0x02 /*!< (未実装フラグ)HORDE生成でEVILなモンスターの生成を禁止する? */
index b914e2a..c975954 100644 (file)
@@ -40,6 +40,7 @@
 
 #include "angband.h"
 #include "object-curse.h"
+#include "projection.h"
 
 
 /*!
index 1f0bfbe..c7f4b85 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include "angband.h"
+#include "projection.h"
 
 /*!
  * @brief モンスターが敵対モンスターにビームを当てること可能かを判定する /
index e66a5ca..a404777 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "angband.h"
 #include "spells-summon.h"
+#include "projection.h"
 
 #define pseudo_plev() (((p_ptr->lev + 40) * (p_ptr->lev + 40) - 1550) / 130) /*!< モンスター魔法をプレイヤーが使用する場合の換算レベル */
 
index 823af9e..8e39f49 100644 (file)
@@ -7,6 +7,7 @@
 
 
 #include "angband.h"
+#include "projection.h"
 
 /*!
 * @brief モンスターIDを取り、モンスター名をm_nameに代入する /
diff --git a/src/projection.h b/src/projection.h
new file mode 100644 (file)
index 0000000..e5b2388
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * project()関数に用いられる、遠隔攻撃特性ビットフラグ / Bit flags for the "project()" function
+ */
+#define PROJECT_JUMP        0x0001 /*!< 遠隔攻撃特性: 発動者からの軌跡を持たず、指定地点に直接発生する(予め置いたトラップ、上空からの発生などのイメージ) / Jump directly to the target location (this is a hack) */
+#define PROJECT_BEAM        0x0002 /*!< 遠隔攻撃特性: ビーム範囲を持つ。 / Work as a beam weapon (affect every grid passed through) */
+#define PROJECT_THRU        0x0004 /*!< 遠隔攻撃特性: 目標地点に到達しても射程と遮蔽の限り引き延ばす。 / Continue "through" the target (used for "bolts"/"beams") */
+#define PROJECT_STOP        0x0008 /*!< 遠隔攻撃特性: 道中にプレイヤーかモンスターがいた時点で到達地点を更新して停止する(壁や森はPROJECT_DISIがない限り最初から貫通しない) */
+#define PROJECT_GRID        0x0010 /*!< 遠隔攻撃特性: 射程内の地形に影響を及ぼす / Affect each grid in the "blast area" in some way */
+#define PROJECT_ITEM        0x0020 /*!< 遠隔攻撃特性: 射程内のアイテムに影響を及ぼす / Affect each object in the "blast area" in some way */
+#define PROJECT_KILL        0x0040 /*!< 遠隔攻撃特性: 射程内のモンスターに影響を及ぼす / Affect each monster in the "blast area" in some way */
+#define PROJECT_HIDE        0x0080 /*!< 遠隔攻撃特性: / Hack -- disable "visual" feedback from projection */
+#define PROJECT_DISI        0x0100 /*!< 遠隔攻撃特性: / Disintegrate non-permanent features */
+#define PROJECT_PLAYER      0x0200 /*!< 遠隔攻撃特性: / Main target is player (used for riding player) */
+#define PROJECT_AIMED       0x0400 /*!< 遠隔攻撃特性: / Target is only player or monster, so don't affect another. Depend on PROJECT_PLAYER. (used for minimum (rad == 0) balls on riding player) */
+#define PROJECT_REFLECTABLE 0x0800 /*!< 遠隔攻撃特性: 反射可能(ボルト系魔法に利用) / Refrectable spell attacks (used for "bolts") */
+#define PROJECT_NO_HANGEKI  0x1000 /*!< 遠隔攻撃特性: / Avoid counter attacks of monsters */
+#define PROJECT_PATH        0x2000 /*!< 遠隔攻撃特性: / Only used for printing project path */
+#define PROJECT_FAST        0x4000 /*!< 遠隔攻撃特性: / Hide "visual" of flying bolts until blast */
+#define PROJECT_LOS         0x8000 /*!< 遠隔攻撃特性: /  */
index 186104f..1f4ca7e 100644 (file)
@@ -1,5 +1,6 @@
 #include "angband.h"
 #include "cmd-spell.h"
+#include "projection.h"
 
 /*!
 * @brief 秘術領域魔法の各処理を行う
index c6991d5..5c07933 100644 (file)
@@ -1,6 +1,7 @@
 #include "angband.h"
 #include "cmd-spell.h"
 #include "spells-summon.h"
+#include "projection.h"
 
 /*!
 * @brief カオス領域魔法の各処理を行う
index a7946dd..9667a21 100644 (file)
@@ -1,6 +1,7 @@
 #include "angband.h"
 #include "cmd-spell.h"
 #include "selfinfo.h"
+#include "projection.h"
 
 
 
index a95a671..10d545e 100644 (file)
@@ -1,6 +1,7 @@
 #include "angband.h"
 #include "cmd-spell.h"
 #include "spells-summon.h"
+#include "projection.h"
 
 
 
index 0ca0221..713b5fb 100644 (file)
@@ -2,6 +2,7 @@
 #include "angband.h"
 #include "cmd-spell.h"
 #include "spells-summon.h"
+#include "projection.h"
 
 /*!
 * @brief 悪魔領域魔法の各処理を行う
index 7178b60..cb6fe6e 100644 (file)
@@ -1,5 +1,6 @@
 #include "angband.h"
 #include "cmd-spell.h"
+#include "projection.h"
 
 
 
index b6032e8..7a614eb 100644 (file)
@@ -20,6 +20,7 @@
 #include "cmd-quaff.h"
 #include "object-hook.h"
 #include "object-curse.h"
+#include "projection.h"
 
 #define MAX_KEEP 4 /*!<呪術の最大詠唱数 */
 
index 9abe687..4c43059 100644 (file)
@@ -2,6 +2,7 @@
 #include "cmd-spell.h"
 #include "melee.h"
 #include "monsterrace-hook.h"
+#include "projection.h"
 
 /*!
 * @brief 剣術の各処理を行う
index c866ac7..f772d4f 100644 (file)
@@ -1,5 +1,6 @@
 #include "angband.h"
 #include "cmd-spell.h"
+#include "projection.h"
 
 /*!
 * @brief 生命領域魔法の各処理を行う
index ea815a6..73221dc 100644 (file)
@@ -1,5 +1,6 @@
 #include "angband.h"\r
 #include "cmd-spell.h"\r
+#include "projection.h"\r
 \r
 \r
 /*!\r
index ba614c0..972ce42 100644 (file)
@@ -1,5 +1,6 @@
 #include "angband.h"
 #include "cmd-spell.h"
+#include "projection.h"
 
 /*!
 * @brief 歌の開始を処理する / Start singing if the player is a Bard
index 92f6393..6de9178 100644 (file)
@@ -1,6 +1,7 @@
 #include "angband.h"
 #include "cmd-spell.h"
 #include "selfinfo.h"
+#include "projection.h"
 
 /*!
 * @brief 仙術領域魔法の各処理を行う
index b993e99..b8a805b 100644 (file)
@@ -1,5 +1,6 @@
 #include "angband.h"
 #include "cmd-spell.h"
+#include "projection.h"
 
 
 /*!
index 08ab7b0..8e75c6a 100644 (file)
@@ -19,6 +19,7 @@
 #include "monsterrace-hook.h"
 #include "melee.h"
 #include "world.h"
+#include "projection.h"
 
 
 static int rakubadam_m; /*!< 振り落とされた際のダメージ量 */
index 1e4a09a..c8162bb 100644 (file)
@@ -17,6 +17,7 @@
 #include "monsterrace-hook.h"
 #include "melee.h"
 #include "world.h"
+#include "projection.h"
 
 
 /*!
index ca982e7..fb91369 100644 (file)
@@ -16,6 +16,8 @@
 #include "object-hook.h"
 #include "melee.h"
 #include "player-status.h"
+#include "projection.h"
+
 
 /*! テレポート先探索の試行数 / Maximum number of tries for teleporting */
 #define MAX_TRIES 100
index c750f19..b232f7c 100644 (file)
@@ -2,6 +2,7 @@
 #include "floor.h"\r
 #include "trap.h"\r
 #include "player-damage.h"\r
+#include "projection.h"\r
 \r
 static s16b normal_traps[MAX_NORMAL_TRAPS];\r
 \r
index 4972294..48d2537 100644 (file)
@@ -17,6 +17,7 @@
 #include "monsterrace-hook.h"
 #include "objectkind-hook.h"
 #include "sort.h"
+#include "projection.h"
 
 #define REWARD_CHANCE 10