From: Hourier Date: Wed, 29 Apr 2020 12:53:16 +0000 (+0900) Subject: [Refactor] #39963 Separated spells-type.h from spells.h X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e0586f66cb0bc4d08cc7d03be09b5c640bc44846;p=hengband%2Fhengband.git [Refactor] #39963 Separated spells-type.h from spells.h --- diff --git a/Hengband_vcs2017/Hengband/Hengband.vcxproj b/Hengband_vcs2017/Hengband/Hengband.vcxproj index 6f670839c..cb0e933cf 100644 --- a/Hengband_vcs2017/Hengband/Hengband.vcxproj +++ b/Hengband_vcs2017/Hengband/Hengband.vcxproj @@ -520,6 +520,7 @@ + diff --git a/Hengband_vcs2017/Hengband/Hengband.vcxproj.filters b/Hengband_vcs2017/Hengband/Hengband.vcxproj.filters index 4242b02ea..ff86b1fb2 100644 --- a/Hengband_vcs2017/Hengband/Hengband.vcxproj.filters +++ b/Hengband_vcs2017/Hengband/Hengband.vcxproj.filters @@ -1436,6 +1436,9 @@ effect + + spell + diff --git a/src/Makefile.am b/src/Makefile.am index 9e9623729..e9c5252c2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 \ diff --git a/src/chest.c b/src/chest.c index ec92b0a91..ffca79bcf 100644 --- a/src/chest.c +++ b/src/chest.c @@ -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" diff --git a/src/cmd/cmd-activate.c b/src/cmd/cmd-activate.c index 4ef66647c..b9702be45 100644 --- a/src/cmd/cmd-activate.c +++ b/src/cmd/cmd-activate.c @@ -31,6 +31,7 @@ #include "targeting.h" #include "world.h" #include "effect/spells-effect-util.h" +#include "spell/spells-type.h" /*! * @brief 装備耐性に準じたブレス効果の選択テーブル / diff --git a/src/cmd/cmd-mane.c b/src/cmd/cmd-mane.c index cb3d0e0fb..aff34cbd5 100644 --- a/src/cmd/cmd-mane.c +++ b/src/cmd/cmd-mane.c @@ -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; diff --git a/src/cmd/cmd-read.c b/src/cmd/cmd-read.c index 5a2d3bcc5..407b194e9 100644 --- a/src/cmd/cmd-read.c +++ b/src/cmd/cmd-read.c @@ -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 巻物を読むコマンドのサブルーチン diff --git a/src/cmd/cmd-zaprod.c b/src/cmd/cmd-zaprod.c index dff68fdfc..721f01457 100644 --- a/src/cmd/cmd-zaprod.c +++ b/src/cmd/cmd-zaprod.c @@ -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" diff --git a/src/cmd/cmd-zapwand.c b/src/cmd/cmd-zapwand.c index 660489ef5..3b50ff5af 100644 --- a/src/cmd/cmd-zapwand.c +++ b/src/cmd/cmd-zapwand.c @@ -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" diff --git a/src/combat/melee.c b/src/combat/melee.c index cb79ad5bd..91489a5df 100644 --- a/src/combat/melee.c +++ b/src/combat/melee.c @@ -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" diff --git a/src/effect/effect-feature.c b/src/effect/effect-feature.c index 8cc6e6796..77a1eb627 100644 --- a/src/effect/effect-feature.c +++ b/src/effect/effect-feature.c @@ -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 diff --git a/src/effect/effect-item.c b/src/effect/effect-item.c index 0b64dfd97..7e514a976 100644 --- a/src/effect/effect-item.c +++ b/src/effect/effect-item.c @@ -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. diff --git a/src/effect/effect-monster-switcher.c b/src/effect/effect-monster-switcher.c index f2465d665..9e7507136 100644 --- a/src/effect/effect-monster-switcher.c +++ b/src/effect/effect-monster-switcher.c @@ -19,6 +19,7 @@ #include "monsterrace-hook.h" #include "combat/melee.h" #include "cmd/cmd-pet.h" // 暫定、後で消すかも. +#include "spell/spells-type.h" /*! * @brief 魔法の効果によって様々なメッセーを出力したり与えるダメージの増減を行ったりする diff --git a/src/effect/effect-monster.c b/src/effect/effect-monster.c index 397fdb48b..137a8dd5d 100644 --- a/src/effect/effect-monster.c +++ b/src/effect/effect-monster.c @@ -15,6 +15,7 @@ #include "effect/effect-monster-switcher.h" #include "monster-status.h" #include "avatar.h" +#include "spell/spells-type.h" /*! * @brief ビーム/ボルト/ボール系魔法によるモンスターへの効果があるかないかを判定する diff --git a/src/effect/effect-player.c b/src/effect/effect-player.c index 8fe9b6cc5..2804872eb 100644 --- a/src/effect/effect-player.c +++ b/src/effect/effect-player.c @@ -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. diff --git a/src/gameterm.c b/src/gameterm.c index 0464971a8..76dc52084 100644 --- a/src/gameterm.c +++ b/src/gameterm.c @@ -2,7 +2,6 @@ #include "util.h" #include "gameterm.h" -#include "spells.h" #include "core.h" diff --git a/src/gameterm.h b/src/gameterm.h index bc1402d03..d6cffbdd4 100644 --- a/src/gameterm.h +++ b/src/gameterm.h @@ -1,5 +1,6 @@ #pragma once +#include "spell/spells-type.h" /* * Angband "attributes" (with symbols, and base (R,G,B) codes) * diff --git a/src/io/gf-descriptions.c b/src/io/gf-descriptions.c index b2ca113b2..636902fe7 100644 --- a/src/io/gf-descriptions.c +++ b/src/io/gf-descriptions.c @@ -3,6 +3,7 @@ */ #include "gf-descriptions.h" +#include "spell/spells-type.h" const named_num gf_desc[MAX_NAMED_NUM] = { diff --git a/src/mind.c b/src/mind.c index e73fa7b73..e19d4e0a1 100644 --- a/src/mind.c +++ b/src/mind.c @@ -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] = diff --git a/src/monster/monster-move.c b/src/monster/monster-move.c index d8cb6d1fa..0e5ea0eea 100644 --- a/src/monster/monster-move.c +++ b/src/monster/monster-move.c @@ -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) { diff --git a/src/monster2.c b/src/monster2.c index 2f6b4a482..4b3bd078c 100644 --- a/src/monster2.c +++ b/src/monster2.c @@ -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" diff --git a/src/mspells1.c b/src/mspells1.c index 90f51e262..ec0f03b52 100644 --- a/src/mspells1.c +++ b/src/mspells1.c @@ -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" diff --git a/src/mspells2.c b/src/mspells2.c index 1ad0a1ac1..0ac4bffb1 100644 --- a/src/mspells2.c +++ b/src/mspells2.c @@ -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" diff --git a/src/mspells3.c b/src/mspells3.c index c3f791d36..a4f26aebf 100644 --- a/src/mspells3.c +++ b/src/mspells3.c @@ -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" diff --git a/src/mspells4.c b/src/mspells4.c index 413f3731b..cd7af9eda 100644 --- a/src/mspells4.c +++ b/src/mspells4.c @@ -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" diff --git a/src/mutation.c b/src/mutation.c index 2eb4d7a77..af3819d3e 100644 --- a/src/mutation.c +++ b/src/mutation.c @@ -37,6 +37,7 @@ #include "targeting.h" #include "player-race.h" #include "effect/spells-effect-util.h" +#include "spell/spells-type.h" /*! * @brief プレイヤーに突然変異を与える diff --git a/src/object-broken.c b/src/object-broken.c index 5e3de8b42..d1e838fdf 100644 --- a/src/object-broken.c +++ b/src/object-broken.c @@ -1,7 +1,7 @@ #include "angband.h" -#include "spells.h" #include "object/object-kind.h" #include "snipe.h" +#include "spell/spells-type.h" /*! * @brief アイテムが酸で破損するかどうかを判定する diff --git a/src/patron.c b/src/patron.c index 6330ebbbd..c24e71f42 100644 --- a/src/patron.c +++ b/src/patron.c @@ -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" diff --git a/src/player-move.c b/src/player-move.c index 1bd4d66dd..b71ced4eb 100644 --- a/src/player-move.c +++ b/src/player-move.c @@ -168,7 +168,7 @@ #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" diff --git a/src/racial.c b/src/racial.c index 1264115c9..7c4e6afcf 100644 --- a/src/racial.c +++ b/src/racial.c @@ -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 修行僧の構え設定処理 diff --git a/src/realm/realm-arcane.c b/src/realm/realm-arcane.c index c0599d1f1..8276a456c 100644 --- a/src/realm/realm-arcane.c +++ b/src/realm/realm-arcane.c @@ -14,6 +14,7 @@ #include "player-effects.h" #include "targeting.h" #include "realm/realm-arcane.h" +#include "spell/spells-type.h" /*! * @brief 秘術領域魔法の各処理を行う diff --git a/src/realm/realm-chaos.c b/src/realm/realm-chaos.c index afb31ffaf..9c3f61558 100644 --- a/src/realm/realm-chaos.c +++ b/src/realm/realm-chaos.c @@ -13,6 +13,7 @@ #include "targeting.h" #include "view/display-main-window.h" #include "realm/realm-chaos.h" +#include "spell/spells-type.h" /*! * @brief カオス領域魔法の各処理を行う diff --git a/src/realm/realm-crusade.c b/src/realm/realm-crusade.c index f7e76a2b9..a23b7a480 100644 --- a/src/realm/realm-crusade.c +++ b/src/realm/realm-crusade.c @@ -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" diff --git a/src/realm/realm-daemon.c b/src/realm/realm-daemon.c index 3265152de..984d4c3b9 100644 --- a/src/realm/realm-daemon.c +++ b/src/realm/realm-daemon.c @@ -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" diff --git a/src/realm/realm-death.c b/src/realm/realm-death.c index 04f311d67..1df6de170 100644 --- a/src/realm/realm-death.c +++ b/src/realm/realm-death.c @@ -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" diff --git a/src/realm/realm-hex.c b/src/realm/realm-hex.c index 4b9532bce..383908226 100644 --- a/src/realm/realm-hex.c +++ b/src/realm/realm-hex.c @@ -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 /*!<呪術の最大詠唱数 */ diff --git a/src/realm/realm-hissatsu.c b/src/realm/realm-hissatsu.c index e4e33680d..d1d2f2092 100644 --- a/src/realm/realm-hissatsu.c +++ b/src/realm/realm-hissatsu.c @@ -23,6 +23,7 @@ #include "world.h" #include "effect/spells-effect-util.h" #include "spell/spells-util.h" +#include "spell/spells-type.h" /*! * @brief 剣術の各処理を行う diff --git a/src/realm/realm-life.c b/src/realm/realm-life.c index 2af7072b2..8fdd9cd1a 100644 --- a/src/realm/realm-life.c +++ b/src/realm/realm-life.c @@ -8,6 +8,7 @@ #include "floor.h" #include "targeting.h" #include "realm/realm-life.h" +#include "spell/spells-type.h" /*! * @brief 生命領域魔法の各処理を行う diff --git a/src/realm/realm-nature.c b/src/realm/realm-nature.c index 52e310056..cd3a5e835 100644 --- a/src/realm/realm-nature.c +++ b/src/realm/realm-nature.c @@ -14,6 +14,7 @@ #include "targeting.h" #include "effect/spells-effect-util.h" #include "realm/realm-nature.h" +#include "spell/spells-type.h" /*! * @brief 自然領域魔法の各処理を行う diff --git a/src/realm/realm-song.c b/src/realm/realm-song.c index 4e8032b45..98556f791 100644 --- a/src/realm/realm-song.c +++ b/src/realm/realm-song.c @@ -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" diff --git a/src/realm/realm-sorcery.c b/src/realm/realm-sorcery.c index fe5d146f5..59591e4d5 100644 --- a/src/realm/realm-sorcery.c +++ b/src/realm/realm-sorcery.c @@ -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" diff --git a/src/realm/realm-trump.c b/src/realm/realm-trump.c index 10867d934..f4b259f7b 100644 --- a/src/realm/realm-trump.c +++ b/src/realm/realm-trump.c @@ -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 index 000000000..4d64e825a --- /dev/null +++ b/src/spell/spells-type.h @@ -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; diff --git a/src/spells-status.c b/src/spells-status.c index f5e4acbc8..57735919d 100644 --- a/src/spells-status.c +++ b/src/spells-status.c @@ -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" diff --git a/src/spells.h b/src/spells.h index 9fc9b1c0d..690cc7bc3 100644 --- a/src/spells.h +++ b/src/spells.h @@ -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); diff --git a/src/spells2.c b/src/spells2.c index 8405ba81f..a019d60c5 100644 --- a/src/spells2.c +++ b/src/spells2.c @@ -60,6 +60,7 @@ #include "realm/realm-song.h" #include "english.h" #include "effect/spells-effect-util.h" +#include "spell/spells-type.h" /*! * @brief プレイヤー周辺の地形を感知する diff --git a/src/trap.c b/src/trap.c index 5f55c220d..19ed4bdb3 100644 --- a/src/trap.c +++ b/src/trap.c @@ -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" diff --git a/src/warning.c b/src/warning.c index ca0ca17d2..3a20ae563 100644 --- a/src/warning.c +++ b/src/warning.c @@ -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"