OSDN Git Service

[Refactor] #39963 Separated spells-type.h from spells.h
authorHourier <hourier@users.sourceforge.jp>
Wed, 29 Apr 2020 12:53:16 +0000 (21:53 +0900)
committerHourier <hourier@users.sourceforge.jp>
Wed, 29 Apr 2020 12:53:16 +0000 (21:53 +0900)
48 files changed:
Hengband_vcs2017/Hengband/Hengband.vcxproj
Hengband_vcs2017/Hengband/Hengband.vcxproj.filters
src/Makefile.am
src/chest.c
src/cmd/cmd-activate.c
src/cmd/cmd-mane.c
src/cmd/cmd-read.c
src/cmd/cmd-zaprod.c
src/cmd/cmd-zapwand.c
src/combat/melee.c
src/effect/effect-feature.c
src/effect/effect-item.c
src/effect/effect-monster-switcher.c
src/effect/effect-monster.c
src/effect/effect-player.c
src/gameterm.c
src/gameterm.h
src/io/gf-descriptions.c
src/mind.c
src/monster/monster-move.c
src/monster2.c
src/mspells1.c
src/mspells2.c
src/mspells3.c
src/mspells4.c
src/mutation.c
src/object-broken.c
src/patron.c
src/player-move.c
src/racial.c
src/realm/realm-arcane.c
src/realm/realm-chaos.c
src/realm/realm-crusade.c
src/realm/realm-daemon.c
src/realm/realm-death.c
src/realm/realm-hex.c
src/realm/realm-hissatsu.c
src/realm/realm-life.c
src/realm/realm-nature.c
src/realm/realm-song.c
src/realm/realm-sorcery.c
src/realm/realm-trump.c
src/spell/spells-type.h [new file with mode: 0644]
src/spells-status.c
src/spells.h
src/spells2.c
src/trap.c
src/warning.c

index 6f67083..cb0e933 100644 (file)
     <ClInclude Include="..\..\src\room\pit-nest-kinds-table.h" />\r
     <ClInclude Include="..\..\src\io\signal-handlers.h" />\r
     <ClInclude Include="..\..\src\io\uid-checker.h" />\r
+    <ClInclude Include="..\..\src\spell\spells-type.h" />\r
     <ClInclude Include="..\..\src\spell\spells-util.h" />\r
     <ClInclude Include="..\..\src\spell\spells-execution.h" />\r
     <ClInclude Include="..\..\src\spell\technic-info-table.h" />\r
index 4242b02..ff86b1f 100644 (file)
     <ClInclude Include="..\..\src\effect\effect-monster-switcher.h">
       <Filter>effect</Filter>
     </ClInclude>
+    <ClInclude Include="..\..\src\spell\spells-type.h">
+      <Filter>spell</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <None Include="..\..\src\wall.bmp" />
index 9e96237..e9c5252 100644 (file)
@@ -175,7 +175,7 @@ hengband_SOURCES = \
        \
        spell/technic-info-table.c spell/technic-info-table.h \
        spell/spells-execution.c spell/spells-execution.h \
-       spell/spells-util.h \
+       spell/spells-util.h spell/spells-type.h \
        spells.h \
        spells1.c spells2.c spells3.c \
        spells-diceroll.c spells-diceroll.h \
index ec92b0a..ffca79b 100644 (file)
@@ -2,7 +2,7 @@
 #include "util.h"
 #include "main/sound-definitions-table.h"
 
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "spells-summon.h"
 #include "floor.h"
 #include "trap.h"
index 4ef6664..b9702be 100644 (file)
@@ -31,6 +31,7 @@
 #include "targeting.h"
 #include "world.h"
 #include "effect/spells-effect-util.h"
+#include "spell/spells-type.h"
 
 /*!
  * @brief 装備耐性に準じたブレス効果の選択テーブル /
index cb3d0e0..aff34cb 100644 (file)
@@ -17,7 +17,6 @@
 
 #include "floor.h"
 #include "grid.h"
-#include "spells.h"
 #include "spells-summon.h"
 #include "spells-status.h"
 #include "monster-status.h"
@@ -29,6 +28,7 @@
 #include "cmd-basic.h"
 #include "targeting.h"
 #include "view/display-main-window.h"
+#include "spell/spells-type.h"
 
 static int damage;
 
index 5a2d3bc..407b194 100644 (file)
@@ -22,7 +22,6 @@
 #include "rumor.h"
 #include "realm/realm-hex.h"
 
-#include "spells.h"
 #include "spells-object.h"
 #include "spells-floor.h"
 #include "spells-summon.h"
@@ -34,6 +33,7 @@
 #include "floor.h"
 #include "object/object-kind.h"
 #include "view/display-main-window.h"
+#include "spell/spells-type.h"
 
 /*!
  * @brief 巻物を読むコマンドのサブルーチン
index dff68fd..721f014 100644 (file)
@@ -9,7 +9,7 @@
 #include "player-inventory.h"
 #include "object/object-kind.h"
 #include "object-hook.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "spells-status.h"
 #include "spells-floor.h"
 #include "cmd-basic.h"
index 660489e..3b50ff5 100644 (file)
@@ -3,7 +3,7 @@
 #include "main/sound-definitions-table.h"
 
 #include "avatar.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "spells-status.h"
 #include "player-status.h"
 #include "player-effects.h"
index cb79ad5..91489a5 100644 (file)
@@ -33,6 +33,7 @@
 #include "floor.h"
 #include "dungeon.h"
 #include "spells.h"
+#include "spell/spells-type.h"
 #include "files.h"
 #include "player-move.h"
 #include "player-effects.h"
index 8cc6e67..77a1eb6 100644 (file)
@@ -6,6 +6,7 @@
 #include "trap.h"
 #include "player-effects.h"
 #include "world.h"
+#include "spell/spells-type.h"
 
 /*!
  * @brief 汎用的なビーム/ボルト/ボール系による地形効果処理 / We are called from "project()" to "damage" terrain features
index 0b64dfd..7e514a9 100644 (file)
@@ -4,6 +4,7 @@
 #include "object-hook.h"
 #include "object-broken.h"
 #include "autopick/autopick.h"
+#include "spell/spells-type.h"
 
 /*!
  * @brief 汎用的なビーム/ボルト/ボール系によるアイテムオブジェクトへの効果処理 / Handle a beam/bolt/ball causing damage to a monster.
index f2465d6..9e75071 100644 (file)
@@ -19,6 +19,7 @@
 #include "monsterrace-hook.h"
 #include "combat/melee.h"
 #include "cmd/cmd-pet.h" // 暫定、後で消すかも.
+#include "spell/spells-type.h"
 
 /*!
  * @brief 魔法の効果によって様々なメッセーを出力したり与えるダメージの増減を行ったりする
index 397fdb4..137a8dd 100644 (file)
@@ -15,6 +15,7 @@
 #include "effect/effect-monster-switcher.h"
 #include "monster-status.h"
 #include "avatar.h"
+#include "spell/spells-type.h"
 
 /*!
  * @brief ビーム/ボルト/ボール系魔法によるモンスターへの効果があるかないかを判定する
index 8fe9b6c..2804872 100644 (file)
@@ -21,6 +21,7 @@
 #include "monster-spell.h"
 #include "mutation.h"
 #include "object-curse.h"
+#include "spell/spells-type.h"
 
 /*!
  * @brief 汎用的なビーム/ボルト/ボール系によるプレイヤーへの効果処理 / Helper function for "project()" below.
index 0464971..76dc520 100644 (file)
@@ -2,7 +2,6 @@
 #include "util.h"
 
 #include "gameterm.h"
-#include "spells.h"
 #include "core.h"
 
 
index bc1402d..d6cffbd 100644 (file)
@@ -1,5 +1,6 @@
 #pragma once
 
+#include "spell/spells-type.h"
 /*
  * Angband "attributes" (with symbols, and base (R,G,B) codes)
  *
index b2ca113..636902f 100644 (file)
@@ -3,6 +3,7 @@
  */
 
 #include "gf-descriptions.h"
+#include "spell/spells-type.h"
 
 const named_num gf_desc[MAX_NAMED_NUM] =
 {
index e73fa7b..e19d4e0 100644 (file)
@@ -41,6 +41,7 @@
 #include "targeting.h"
 #include "realm/realm-song.h"
 #include "effect/spells-effect-util.h"
+#include "spell/spells-type.h"
 
 /*! 特殊技能の一覧テーブル */
 mind_power const mind_powers[5] =
index d8cb6d1..0e5ea0e 100644 (file)
@@ -13,6 +13,7 @@
 #include "files.h"
 #include "monster-status.h"
 #include "player-move.h"
+#include "spell/spells-type.h"
 
 static bool check_hp_for_feat_destruction(feature_type *f_ptr, monster_type *m_ptr)
 {
index 2f6b4a4..4b3bd07 100644 (file)
@@ -24,7 +24,7 @@
 #include "monsterrace-hook.h"
 #include "monster-status.h"
 #include "monster.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "spells-summon.h"
 #include "quest.h"
 #include "grid.h"
index 90f51e2..ec0f03b 100644 (file)
@@ -51,7 +51,7 @@
 #include "player-status.h"
 #include "monster.h"
 #include "monster-spell.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "world.h"
 #include "realm/realm-song.h"
 #include "view/display-main-window.h"
index 1ad0a1a..0ac4bff 100644 (file)
@@ -25,7 +25,7 @@
 #include "monster.h"
 #include "monster-status.h"
 #include "monster-spell.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "dungeon.h"
 #include "world.h"
 #include "view/display-main-window.h"
index c3f791d..a4f26ae 100644 (file)
@@ -24,7 +24,7 @@
 #include "player-status.h"
 #include "monster-spell.h"
 #include "monster-status.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "cmd-basic.h"
 #include "player-effects.h"
 #include "targeting.h"
index 413f373..cd7af9e 100644 (file)
@@ -21,7 +21,7 @@
 #include "player-move.h"
 #include "monster-spell.h"
 #include "monster-status.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "melee.h"
 #include "player-effects.h"
 #include "world.h"
index 2eb4d7a..af3819d 100644 (file)
@@ -37,6 +37,7 @@
 #include "targeting.h"
 #include "player-race.h"
 #include "effect/spells-effect-util.h"
+#include "spell/spells-type.h"
 
 /*!
  * @brief プレイヤーに突然変異を与える
index 5e3de8b..d1e838f 100644 (file)
@@ -1,7 +1,7 @@
 #include "angband.h"
-#include "spells.h"
 #include "object/object-kind.h"
 #include "snipe.h"
+#include "spell/spells-type.h"
 
 /*!
 * @brief アイテムが酸で破損するかどうかを判定する
index 6330ebb..c24e71f 100644 (file)
@@ -18,7 +18,7 @@
 #include "player-class.h"
 #include "player-damage.h"
 
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "spells-summon.h"
 #include "spells-object.h"
 #include "spells-status.h"
index 1bd4d66..b71ced4 100644 (file)
 #include "monster-status.h"
 #include "object-hook.h"
 #include "object-flavor.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "cmd-basic.h"
 #include "view/display-main-window.h"
 #include "world.h"
index 1264115..7c4e6af 100644 (file)
@@ -36,6 +36,7 @@
 #include "view/display-main-window.h"
 #include "player-class.h"
 #include "effect/spells-effect-util.h"
+#include "spell/spells-type.h"
 
 /*!
  * @brief 修行僧の構え設定処理
index c0599d1..8276a45 100644 (file)
@@ -14,6 +14,7 @@
 #include "player-effects.h"
 #include "targeting.h"
 #include "realm/realm-arcane.h"
+#include "spell/spells-type.h"
 
 /*!
 * @brief 秘術領域魔法の各処理を行う
index afb31ff..9c3f615 100644 (file)
@@ -13,6 +13,7 @@
 #include "targeting.h"
 #include "view/display-main-window.h"
 #include "realm/realm-chaos.h"
+#include "spell/spells-type.h"
 
 /*!
 * @brief カオス領域魔法の各処理を行う
index f7e76a2..a23b7a4 100644 (file)
@@ -4,7 +4,7 @@
 #include "world.h"
 #include "cmd-spell.h"
 #include "floor.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "spells-object.h"
 #include "spells-summon.h"
 #include "spells-status.h"
index 3265152..984d4c3 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "player-class.h"
 #include "cmd-spell.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "spells-summon.h"
 #include "spells-floor.h"
 #include "spells-status.h"
index 04f311d..1df6de1 100644 (file)
@@ -1,6 +1,6 @@
 #include "angband.h"
 #include "cmd-spell.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "spells-summon.h"
 #include "spells-status.h"
 #include "spells-object.h"
index 4b9532b..3839082 100644 (file)
@@ -39,6 +39,7 @@
 #include "world.h"
 #include "realm/realm-hex.h"
 #include "spell/spells-execution.h"
+#include "spell/spells-type.h"
 
 #define MAX_KEEP 4 /*!<呪術の最大詠唱数 */
 
index e4e3368..d1d2f20 100644 (file)
@@ -23,6 +23,7 @@
 #include "world.h"
 #include "effect/spells-effect-util.h"
 #include "spell/spells-util.h"
+#include "spell/spells-type.h"
 
 /*!
 * @brief 剣術の各処理を行う
index 2af7072..8fdd9cd 100644 (file)
@@ -8,6 +8,7 @@
 #include "floor.h"
 #include "targeting.h"
 #include "realm/realm-life.h"
+#include "spell/spells-type.h"
 
 /*!
 * @brief 生命領域魔法の各処理を行う
index 52e3100..cd3a5e8 100644 (file)
@@ -14,6 +14,7 @@
 #include "targeting.h"
 #include "effect/spells-effect-util.h"
 #include "realm/realm-nature.h"
+#include "spell/spells-type.h"
 
 /*!
 * @brief 自然領域魔法の各処理を行う
index 4e8032b..98556f7 100644 (file)
@@ -2,7 +2,7 @@
 #include "util.h"
 
 #include "cmd-spell.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "spells-status.h"
 #include "spells-floor.h"
 #include "player-class.h"
index fe5d146..59591e4 100644 (file)
@@ -5,7 +5,7 @@
 #include "selfinfo.h"
 #include "avatar.h"
 
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "spells-status.h"
 #include "spells-floor.h"
 #include "player-effects.h"
index 10867d9..f4b259f 100644 (file)
@@ -11,6 +11,7 @@
 #include "targeting.h"
 #include "effect/spells-effect-util.h"
 #include "realm/realm-trump.h"
+#include "spell/spells-type.h"
 
 /*!
 * @brief トランプ領域魔法の各処理を行う
diff --git a/src/spell/spells-type.h b/src/spell/spells-type.h
new file mode 100644 (file)
index 0000000..4d64e82
--- /dev/null
@@ -0,0 +1,105 @@
+#pragma once
+
+typedef enum
+{
+       GF_ELEC = 1,                            /*!< 魔法効果: 電撃*/
+       GF_POIS = 2,                            /*!< 魔法効果: 毒*/
+       GF_ACID = 3,                            /*!< 魔法効果: 酸*/
+       GF_COLD = 4,                            /*!< 魔法効果: 冷気*/
+       GF_FIRE = 5,                            /*!< 魔法効果: 火炎*/
+       GF_PSY_SPEAR = 9,                       /*!< 魔法効果: 光の剣*/
+       GF_MISSILE = 10,                        /*!< 魔法効果: 弱魔力*/
+       GF_ARROW = 11,                          /*!< 魔法効果: 射撃*/
+       GF_PLASMA = 12,                         /*!< 魔法効果: プラズマ*/
+       GF_WATER = 14,                          /*!< 魔法効果: 水流*/
+       GF_LITE = 15,                           /*!< 魔法効果: 閃光*/
+       GF_DARK = 16,                           /*!< 魔法効果: 暗黒*/
+       GF_LITE_WEAK = 17,                      /*!< 魔法効果: 弱光*/
+       GF_DARK_WEAK = 18,                      /*!< 魔法効果: 弱暗*/
+       GF_SHARDS = 20,                         /*!< 魔法効果: 破片*/
+       GF_SOUND = 21,                          /*!< 魔法効果: 轟音*/
+       GF_CONFUSION = 22,                      /*!< 魔法効果: 混乱*/
+       GF_FORCE = 23,                          /*!< 魔法効果: フォース*/
+       GF_INERTIAL = 24,                       /*!< 魔法効果: 遅鈍*/
+       GF_MANA = 26,                           /*!< 魔法効果: 純粋魔力*/
+       GF_METEOR = 27,                         /*!< 魔法効果: 隕石*/
+       GF_ICE = 28,                            /*!< 魔法効果: 極寒*/
+       GF_CHAOS = 30,                          /*!< 魔法効果: カオス*/
+       GF_NETHER = 31,                         /*!< 魔法効果: 地獄*/
+       GF_DISENCHANT = 32,                     /*!< 魔法効果: 劣化*/
+       GF_NEXUS = 33,                          /*!< 魔法効果: 因果混乱*/
+       GF_TIME = 34,                           /*!< 魔法効果: 時間逆転*/
+       GF_GRAVITY = 35,                        /*!< 魔法効果: 重力*/
+       GF_KILL_WALL = 40,                      /*!< 魔法効果: 岩石溶解*/
+       GF_KILL_DOOR = 41,                      /*!< 魔法効果: ドア破壊*/
+       GF_KILL_TRAP = 42,                      /*!< 魔法効果: トラップ破壊*/
+       GF_MAKE_WALL = 45,                      /*!< 魔法効果: 壁生成*/
+       GF_MAKE_DOOR = 46,                      /*!< 魔法効果: ドア生成*/
+       GF_MAKE_TRAP = 47,                      /*!< 魔法効果: トラップ生成*/
+       GF_MAKE_TREE = 48,                      /*!< 魔法効果: 森林生成*/
+       GF_OLD_CLONE = 51,                      /*!< 魔法効果: クローン・モンスター*/
+       GF_OLD_POLY = 52,                       /*!< 魔法効果: チェンジ・モンスター*/
+       GF_OLD_HEAL = 53,                       /*!< 魔法効果: 回復モンスター*/
+       GF_OLD_SPEED = 54,                      /*!< 魔法効果: スピード・モンスター*/
+       GF_OLD_SLOW = 55,                       /*!< 魔法効果: スロウ・モンスター*/
+       GF_OLD_CONF = 56,                       /*!< 魔法効果: パニック・モンスター*/
+       GF_OLD_SLEEP = 57,                      /*!< 魔法効果: スリープ・モンスター*/
+       GF_HYPODYNAMIA = 58,            /*!< 魔法効果: 衰弱*/
+       GF_AWAY_UNDEAD = 61,            /*!< 魔法効果: アンデッド・アウェイ*/
+       GF_AWAY_EVIL = 62,                      /*!< 魔法効果: 邪悪飛ばし*/
+       GF_AWAY_ALL = 63,                       /*!< 魔法効果: テレポート・アウェイ*/
+       GF_TURN_UNDEAD = 64,            /*!< 魔法効果: アンデッド恐慌*/
+       GF_TURN_EVIL = 65,                      /*!< 魔法効果: 邪悪恐慌*/
+       GF_TURN_ALL = 66,                       /*!< 魔法効果: モンスター恐慌*/
+       GF_DISP_UNDEAD = 67,            /*!< 魔法効果: アンデッド退散*/
+       GF_DISP_EVIL = 68,                      /*!< 魔法効果: 邪悪退散*/
+       GF_DISP_ALL = 69,                       /*!< 魔法効果: モンスター退散*/
+       GF_DISP_DEMON = 70,                     /*!< 魔法効果: 悪魔退散*/
+       GF_DISP_LIVING = 71,            /*!< 魔法効果: 生命退散*/
+       GF_ROCKET = 72,                         /*!< 魔法効果: ロケット*/
+       GF_NUKE = 73,                           /*!< 魔法効果: 放射性廃棄物*/
+       GF_MAKE_GLYPH = 74,                     /*!< 魔法効果: 守りのルーン生成*/
+       GF_STASIS = 75,                         /*!< 魔法効果: モンスター拘束*/
+       GF_STONE_WALL = 76,                     /*!< 魔法効果: 壁生成*/
+       GF_DEATH_RAY = 77,                      /*!< 魔法効果: 死の光線*/
+       GF_STUN = 78,                           /*!< 魔法効果: 朦朧*/
+       GF_HOLY_FIRE = 79,                      /*!< 魔法効果: 聖光*/
+       GF_HELL_FIRE = 80,                      /*!< 魔法効果: 地獄の劫火*/
+       GF_DISINTEGRATE = 81,           /*!< 魔法効果: 分解*/
+       GF_CHARM = 82,                          /*!< 魔法効果: モンスター魅了*/
+       GF_CONTROL_UNDEAD = 83,         /*!< 魔法効果: アンデッド支配*/
+       GF_CONTROL_ANIMAL = 84,         /*!< 魔法効果: 動物支配*/
+       GF_PSI = 85,                            /*!< 魔法効果: サイキック攻撃*/
+       GF_PSI_DRAIN = 86,                      /*!< 魔法効果: 精神吸収*/
+       GF_TELEKINESIS = 87,            /*!< 魔法効果: テレキシネス*/
+       GF_JAM_DOOR = 88,                       /*!< 魔法効果: 施錠*/
+       GF_DOMINATION = 89,                     /*!< 魔法効果: 精神支配*/
+       GF_DISP_GOOD = 90,                      /*!< 魔法効果: 善良退散*/
+       GF_DRAIN_MANA = 91,                     /*!< 魔法効果: 魔力吸収*/
+       GF_MIND_BLAST = 92,                     /*!< 魔法効果: 精神攻撃*/
+       GF_BRAIN_SMASH = 93,            /*!< 魔法効果: 脳攻撃*/
+       GF_CAUSE_1 = 94,                        /*!< 魔法効果: 軽傷の呪い*/
+       GF_CAUSE_2 = 95,                        /*!< 魔法効果: 重傷の呪い*/
+       GF_CAUSE_3 = 96,                        /*!< 魔法効果: 致命傷の呪い*/
+       GF_CAUSE_4 = 97,                        /*!< 魔法効果: 秘孔を突く*/
+       GF_HAND_DOOM = 98,                      /*!< 魔法効果: 破滅の手*/
+       GF_CAPTURE = 99,                        /*!< 魔法効果: 捕縛*/
+       GF_ANIM_DEAD = 100,                     /*!< 魔法効果: 死者復活*/
+       GF_CHARM_LIVING = 101,          /*!< 魔法効果: 生命魅了*/
+       GF_IDENTIFY = 102,                      /*!< 魔法効果: 鑑定*/
+       GF_ATTACK = 103,                        /*!< 魔法効果: 白兵*/
+       GF_ENGETSU = 104,                       /*!< 魔法効果: 円月*/
+       GF_GENOCIDE = 105,                      /*!< 魔法効果: 抹殺*/
+       GF_PHOTO = 106,                         /*!< 魔法効果: 撮影*/
+       GF_CONTROL_DEMON = 107,         /*!< 魔法効果: 悪魔支配*/
+       GF_LAVA_FLOW = 108,                     /*!< 魔法効果: 溶岩噴出*/
+       GF_BLOOD_CURSE = 109,           /*!< 魔法効果: 血の呪い*/
+       GF_SEEKER = 110,                        /*!< 魔法効果: シーカーレイ*/
+       GF_SUPER_RAY = 111,                     /*!< 魔法効果: スーパーレイ*/
+       GF_STAR_HEAL = 112,                     /*!< 魔法効果: 星の癒し*/
+       GF_WATER_FLOW = 113,            /*!< 魔法効果: 流水*/
+       GF_CRUSADE = 114,                       /*!< 魔法効果: 聖戦*/
+       GF_STASIS_EVIL = 115,           /*!< 魔法効果: 邪悪拘束*/
+       GF_WOUNDS = 116,                        /*!< 魔法効果: 創傷*/
+       MAX_GF = 117,
+} spells_type;
index f5e4acb..5773591 100644 (file)
@@ -9,7 +9,7 @@
 #include "player-status.h"
 #include "player-class.h"
 #include "spells-status.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "monster.h"
 #include "cmd-spell.h"
 #include "player-effects.h"
index 9fc9b1c..690cc7b 100644 (file)
@@ -9,114 +9,6 @@
 #define SPOP_NO_UPDATE      0x0002 // !< スペル処理オプション … ステータス更新を解決後行う
 #define SPOP_DEBUG          0x8000 // !< スペル処理オプション … デバッグ処理あり
 
-/*
- * Spell types used by project(), and related functions.
- */
-#define GF_ELEC         1                      /*!< 魔法効果: 電撃*/
-#define GF_POIS         2                      /*!< 魔法効果: 毒*/
-#define GF_ACID         3                      /*!< 魔法効果: 酸*/
-#define GF_COLD         4                      /*!< 魔法効果: 冷気*/
-#define GF_FIRE         5                      /*!< 魔法効果: 火炎*/
-#define GF_PSY_SPEAR    9                      /*!< 魔法効果: 光の剣*/
-#define GF_MISSILE      10                     /*!< 魔法効果: 弱魔力*/
-#define GF_ARROW        11                     /*!< 魔法効果: 射撃*/
-#define GF_PLASMA       12                     /*!< 魔法効果: プラズマ*/
- /* Replaced with GF_HOLY_FIRE and GF_HELL_FIRE */
- /* #define GF_HOLY_ORB     13 */
-#define GF_WATER        14                     /*!< 魔法効果: 水流*/
-#define GF_LITE         15                     /*!< 魔法効果: 閃光*/
-#define GF_DARK         16                     /*!< 魔法効果: 暗黒*/
-#define GF_LITE_WEAK    17                     /*!< 魔法効果: 弱光*/
-#define GF_DARK_WEAK    18                     /*!< 魔法効果: 弱暗*/
-#define GF_SHARDS       20                     /*!< 魔法効果: 破片*/
-#define GF_SOUND        21                     /*!< 魔法効果: 轟音*/
-#define GF_CONFUSION    22                     /*!< 魔法効果: 混乱*/
-#define GF_FORCE        23                     /*!< 魔法効果: フォース*/
-#define GF_INERTIAL     24                     /*!< 魔法効果: 遅鈍*/
-#define GF_MANA         26                     /*!< 魔法効果: 純粋魔力*/
-#define GF_METEOR       27                     /*!< 魔法効果: 隕石*/
-#define GF_ICE          28                     /*!< 魔法効果: 極寒*/
-#define GF_CHAOS        30                     /*!< 魔法効果: カオス*/
-#define GF_NETHER       31                     /*!< 魔法効果: 地獄*/
-#define GF_DISENCHANT   32                     /*!< 魔法効果: 劣化*/
-#define GF_NEXUS        33                     /*!< 魔法効果: 因果混乱*/
-#define GF_TIME         34                     /*!< 魔法効果: 時間逆転*/
-#define GF_GRAVITY      35                     /*!< 魔法効果: 重力*/
-#define GF_KILL_WALL    40                     /*!< 魔法効果: 岩石溶解*/
-#define GF_KILL_DOOR    41                     /*!< 魔法効果: ドア破壊*/
-#define GF_KILL_TRAP    42                     /*!< 魔法効果: トラップ破壊*/
-#define GF_MAKE_WALL    45                     /*!< 魔法効果: 壁生成*/
-#define GF_MAKE_DOOR    46                     /*!< 魔法効果: ドア生成*/
-#define GF_MAKE_TRAP    47                     /*!< 魔法効果: トラップ生成*/
-#define GF_MAKE_TREE    48                     /*!< 魔法効果: 森林生成*/
-#define GF_OLD_CLONE    51                     /*!< 魔法効果: クローン・モンスター*/
-#define GF_OLD_POLY     52                     /*!< 魔法効果: チェンジ・モンスター*/
-#define GF_OLD_HEAL     53                     /*!< 魔法効果: 回復モンスター*/
-#define GF_OLD_SPEED    54                     /*!< 魔法効果: スピード・モンスター*/
-#define GF_OLD_SLOW     55                     /*!< 魔法効果: スロウ・モンスター*/
-#define GF_OLD_CONF     56                     /*!< 魔法効果: パニック・モンスター*/
-#define GF_OLD_SLEEP    57                     /*!< 魔法効果: スリープ・モンスター*/
-#define GF_HYPODYNAMIA  58                     /*!< 魔法効果: 衰弱*/
-#define GF_AWAY_UNDEAD  61                     /*!< 魔法効果: アンデッド・アウェイ*/
-#define GF_AWAY_EVIL    62                     /*!< 魔法効果: 邪悪飛ばし*/
-#define GF_AWAY_ALL     63                     /*!< 魔法効果: テレポート・アウェイ*/
-#define GF_TURN_UNDEAD  64                     /*!< 魔法効果: アンデッド恐慌*/
-#define GF_TURN_EVIL    65                     /*!< 魔法効果: 邪悪恐慌*/
-#define GF_TURN_ALL     66                     /*!< 魔法効果: モンスター恐慌*/
-#define GF_DISP_UNDEAD  67                     /*!< 魔法効果: アンデッド退散*/
-#define GF_DISP_EVIL    68                     /*!< 魔法効果: 邪悪退散*/
-#define GF_DISP_ALL     69                     /*!< 魔法効果: モンスター退散*/
-/* New types for Zangband begin here... */
-#define GF_DISP_DEMON      70          /*!< 魔法効果: 悪魔退散*/
-#define GF_DISP_LIVING     71          /*!< 魔法効果: 生命退散*/
-#define GF_ROCKET          72          /*!< 魔法効果: ロケット*/
-#define GF_NUKE            73          /*!< 魔法効果: 放射性廃棄物*/
-#define GF_MAKE_GLYPH      74          /*!< 魔法効果: 守りのルーン生成*/
-#define GF_STASIS          75          /*!< 魔法効果: モンスター拘束*/
-#define GF_STONE_WALL      76          /*!< 魔法効果: 壁生成*/
-#define GF_DEATH_RAY       77          /*!< 魔法効果: 死の光線*/
-#define GF_STUN            78          /*!< 魔法効果: 朦朧*/
-#define GF_HOLY_FIRE       79          /*!< 魔法効果: 聖光*/
-#define GF_HELL_FIRE       80          /*!< 魔法効果: 地獄の劫火*/
-#define GF_DISINTEGRATE    81          /*!< 魔法効果: 分解*/
-#define GF_CHARM           82          /*!< 魔法効果: モンスター魅了*/
-#define GF_CONTROL_UNDEAD  83          /*!< 魔法効果: アンデッド支配*/
-#define GF_CONTROL_ANIMAL  84          /*!< 魔法効果: 動物支配*/
-#define GF_PSI             85          /*!< 魔法効果: サイキック攻撃*/
-#define GF_PSI_DRAIN       86          /*!< 魔法効果: 精神吸収*/
-#define GF_TELEKINESIS     87          /*!< 魔法効果: テレキシネス*/
-#define GF_JAM_DOOR        88          /*!< 魔法効果: 施錠*/
-#define GF_DOMINATION      89          /*!< 魔法効果: 精神支配*/
-#define GF_DISP_GOOD       90          /*!< 魔法効果: 善良退散*/
-#define GF_DRAIN_MANA      91          /*!< 魔法効果: 魔力吸収*/
-#define GF_MIND_BLAST      92          /*!< 魔法効果: 精神攻撃*/
-#define GF_BRAIN_SMASH     93          /*!< 魔法効果: 脳攻撃*/
-#define GF_CAUSE_1         94          /*!< 魔法効果: 軽傷の呪い*/
-#define GF_CAUSE_2         95          /*!< 魔法効果: 重傷の呪い*/
-#define GF_CAUSE_3         96          /*!< 魔法効果: 致命傷の呪い*/
-#define GF_CAUSE_4         97          /*!< 魔法効果: 秘孔を突く*/
-#define GF_HAND_DOOM       98          /*!< 魔法効果: 破滅の手*/
-#define GF_CAPTURE         99          /*!< 魔法効果: 捕縛*/
-#define GF_ANIM_DEAD      100          /*!< 魔法効果: 死者復活*/
-#define GF_CHARM_LIVING   101          /*!< 魔法効果: 生命魅了*/
-#define GF_IDENTIFY       102          /*!< 魔法効果: 鑑定*/
-#define GF_ATTACK         103          /*!< 魔法効果: 白兵*/
-#define GF_ENGETSU        104          /*!< 魔法効果: 円月*/
-#define GF_GENOCIDE       105          /*!< 魔法効果: 抹殺*/
-#define GF_PHOTO          106          /*!< 魔法効果: 撮影*/
-#define GF_CONTROL_DEMON  107          /*!< 魔法効果: 悪魔支配*/
-#define GF_LAVA_FLOW      108          /*!< 魔法効果: 溶岩噴出*/
-#define GF_BLOOD_CURSE    109          /*!< 魔法効果: 血の呪い*/
-#define GF_SEEKER         110          /*!< 魔法効果: シーカーレイ*/
-#define GF_SUPER_RAY      111          /*!< 魔法効果: スーパーレイ*/
-#define GF_STAR_HEAL      112          /*!< 魔法効果: 星の癒し*/
-#define GF_WATER_FLOW     113          /*!< 魔法効果: 流水*/
-#define GF_CRUSADE        114          /*!< 魔法効果: 聖戦*/
-#define GF_STASIS_EVIL    115          /*!< 魔法効果: 邪悪拘束*/
-#define GF_WOUNDS         116          /*!< 魔法効果: 創傷*/
-
-#define MAX_GF         117
-
 /* spells1.c */
 extern bool in_disintegration_range(floor_type *floor_ptr, POSITION y1, POSITION x1, POSITION y2, POSITION x2);
 extern void breath_shape(player_type *caster_ptr, u16b *path_g, int dist, int *pgrids, POSITION *gx, POSITION *gy, POSITION *gm, POSITION *pgm_rad, POSITION rad, POSITION y1, POSITION x1, POSITION y2, POSITION x2, EFFECT_ID typ);
index 8405ba8..a019d60 100644 (file)
@@ -60,6 +60,7 @@
 #include "realm/realm-song.h"
 #include "english.h"
 #include "effect/spells-effect-util.h"
+#include "spell/spells-type.h"
 
  /*!
   * @brief プレイヤー周辺の地形を感知する
index 5f55c22..19ed4bd 100644 (file)
@@ -17,7 +17,7 @@
 #include "feature.h"
 #include "player-status.h"
 #include "grid.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "floor.h"
 #include "floor-save.h"
 #include "init.h"
index ca0ca17..3a20ae5 100644 (file)
@@ -10,7 +10,7 @@
 #include "player-status.h"
 #include "monster.h"
 #include "monster-spell.h"
-#include "spells.h"
+#include "spell/spells-type.h"
 #include "object-flavor.h"
 #include "dungeon.h"
 #include "player/mimic-info-table.h"