From: Hourier Date: Sat, 27 Jun 2020 07:32:53 +0000 (+0900) Subject: [Refactor] #40498 Separated special-defense-types.h from player-status.h X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0cf784a655e8110493e59a57c54e005182410630;p=hengband%2Fhengband.git [Refactor] #40498 Separated special-defense-types.h from player-status.h --- diff --git a/Hengband/Hengband/Hengband.vcxproj b/Hengband/Hengband/Hengband.vcxproj index 7643dac58..d6e0fb208 100644 --- a/Hengband/Hengband/Hengband.vcxproj +++ b/Hengband/Hengband/Hengband.vcxproj @@ -616,6 +616,7 @@ + diff --git a/Hengband/Hengband/Hengband.vcxproj.filters b/Hengband/Hengband/Hengband.vcxproj.filters index 45a43c00d..72940b8f7 100644 --- a/Hengband/Hengband/Hengband.vcxproj.filters +++ b/Hengband/Hengband/Hengband.vcxproj.filters @@ -3166,6 +3166,9 @@ mind + + player + diff --git a/src/Makefile.am b/src/Makefile.am index a14b5c7db..9c6533e38 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -460,6 +460,7 @@ hengband_SOURCES = \ player/player-personalities-types.h \ player/player-sex.c player/player-sex.h \ player/selfinfo.c player/selfinfo.h \ + player/special-defense-types.h \ \ player-attack/player-attack-util.h \ player-attack/attack-chaos-effect.c player-attack/attack-chaos-effect.h \ diff --git a/src/cmd-action/cmd-attack.c b/src/cmd-action/cmd-attack.c index 4d9a8f294..2cb75865c 100644 --- a/src/cmd-action/cmd-attack.c +++ b/src/cmd-action/cmd-attack.c @@ -29,6 +29,7 @@ #include "player/player-effects.h" #include "player/player-move.h" #include "player/player-skill.h" +#include "player/special-defense-types.h" #include "spell/process-effect.h" #include "spell/spell-types.h" #include "view/display-messages.h" diff --git a/src/cmd-action/cmd-hissatsu.c b/src/cmd-action/cmd-hissatsu.c index 45209b2ca..2ab55ec1f 100644 --- a/src/cmd-action/cmd-hissatsu.c +++ b/src/cmd-action/cmd-hissatsu.c @@ -25,6 +25,7 @@ #include "object/item-use-flags.h" #include "player/player-effects.h" #include "player/player-status.h" +#include "player/special-defense-types.h" #include "spell/spells-execution.h" #include "spell/spells-util.h" #include "spell/technic-info-table.h" diff --git a/src/cmd-action/cmd-pet.c b/src/cmd-action/cmd-pet.c index 9635b3f5d..20dba9217 100644 --- a/src/cmd-action/cmd-pet.c +++ b/src/cmd-action/cmd-pet.c @@ -36,6 +36,7 @@ #include "player/player-move.h" #include "player/player-skill.h" #include "player/player-status.h" +#include "player/special-defense-types.h" #include "term/screen-processor.h" #include "util/bit-flags-calculator.h" #include "util/int-char-converter.h" diff --git a/src/cmd-action/cmd-spell.c b/src/cmd-action/cmd-spell.c index d98a5210c..e7e0101c2 100644 --- a/src/cmd-action/cmd-spell.c +++ b/src/cmd-action/cmd-spell.c @@ -35,6 +35,7 @@ #include "player/player-skill.h" #include "player/player-status.h" #include "player/selfinfo.h" +#include "player/special-defense-types.h" #include "realm/realm-names-table.h" #include "spell-kind/spells-random.h" #include "spell-kind/spells-sight.h" diff --git a/src/cmd-item/cmd-activate.c b/src/cmd-item/cmd-activate.c index 12a15fc6c..2372a628c 100644 --- a/src/cmd-item/cmd-activate.c +++ b/src/cmd-item/cmd-activate.c @@ -47,6 +47,7 @@ #include "player/player-damage.h" #include "player/player-effects.h" #include "player/player-race-types.h" +#include "player/special-defense-types.h" #include "realm/realm-types.h" #include "spell-kind/earthquake.h" #include "spell-kind/spells-beam.h" diff --git a/src/cmd-item/cmd-eat.c b/src/cmd-item/cmd-eat.c index b5688b741..ffe9d7f80 100644 --- a/src/cmd-item/cmd-eat.c +++ b/src/cmd-item/cmd-eat.c @@ -28,6 +28,7 @@ #include "player/player-effects.h" #include "player/player-race-types.h" #include "player/player-status.h" +#include "player/special-defense-types.h" #include "spell-realm/spells-hex.h" #include "spell/spells-status.h" #include "sv-definition/sv-food-types.h" diff --git a/src/cmd-item/cmd-item.c b/src/cmd-item/cmd-item.c index 6a96e58f1..03ff5bc88 100644 --- a/src/cmd-item/cmd-item.c +++ b/src/cmd-item/cmd-item.c @@ -60,6 +60,7 @@ #include "player/player-race-types.h" #include "player/player-status.h" #include "player/selfinfo.h" +#include "player/special-defense-types.h" #include "realm/realm-hex-numbers.h" #include "realm/realm-names-table.h" #include "realm/realm-types.h" diff --git a/src/cmd-item/cmd-quaff.c b/src/cmd-item/cmd-quaff.c index 837f361b5..0b2293755 100644 --- a/src/cmd-item/cmd-quaff.c +++ b/src/cmd-item/cmd-quaff.c @@ -32,6 +32,7 @@ #include "player/player-race-types.h" #include "player/player-status.h" #include "player/selfinfo.h" +#include "player/special-defense-types.h" #include "realm/realm-hex-numbers.h" #include "spell-kind/spells-detection.h" #include "spell-kind/spells-floor.h" diff --git a/src/cmd-item/cmd-read.c b/src/cmd-item/cmd-read.c index 4f4df5697..942c5015b 100644 --- a/src/cmd-item/cmd-read.c +++ b/src/cmd-item/cmd-read.c @@ -28,6 +28,7 @@ #include "player/player-damage.h" #include "player/player-effects.h" #include "player/player-status.h" +#include "player/special-defense-types.h" #include "spell-kind/spells-detection.h" #include "spell-kind/spells-floor.h" #include "spell-kind/spells-genocide.h" diff --git a/src/cmd-item/cmd-usestaff.c b/src/cmd-item/cmd-usestaff.c index 0ee4f9498..3110ad1a7 100644 --- a/src/cmd-item/cmd-usestaff.c +++ b/src/cmd-item/cmd-usestaff.c @@ -22,6 +22,7 @@ #include "player/player-race-types.h" #include "player/player-race.h" #include "player/player-status.h" +#include "player/special-defense-types.h" #include "spell-kind/earthquake.h" #include "spell-kind/spells-detection.h" #include "spell-kind/spells-floor.h" diff --git a/src/cmd-item/cmd-zaprod.c b/src/cmd-item/cmd-zaprod.c index 82d2db365..c86ebf2ef 100644 --- a/src/cmd-item/cmd-zaprod.c +++ b/src/cmd-item/cmd-zaprod.c @@ -16,6 +16,7 @@ #include "player/player-class.h" #include "player/player-effects.h" #include "player/player-status.h" +#include "player/special-defense-types.h" #include "spell-kind/spells-beam.h" #include "spell-kind/spells-detection.h" #include "spell-kind/spells-floor.h" diff --git a/src/cmd-item/cmd-zapwand.c b/src/cmd-item/cmd-zapwand.c index 5f92f5911..814fad5d6 100644 --- a/src/cmd-item/cmd-zapwand.c +++ b/src/cmd-item/cmd-zapwand.c @@ -18,6 +18,7 @@ #include "player/player-class.h" #include "player/player-effects.h" #include "player/player-status.h" +#include "player/special-defense-types.h" #include "spell-kind/spells-beam.h" #include "spell-kind/spells-charm.h" #include "spell-kind/spells-launcher.h" diff --git a/src/cmd/cmd-basic.c b/src/cmd/cmd-basic.c index b689d8b5a..47bb0e8f1 100644 --- a/src/cmd/cmd-basic.c +++ b/src/cmd/cmd-basic.c @@ -71,6 +71,7 @@ #include "player/player-move.h" #include "player/player-personalities-types.h" #include "player/player-status.h" +#include "player/special-defense-types.h" #include "realm/realm-types.h" #include "specific-object/chest.h" #include "specific-object/torch.h" diff --git a/src/core/hp-mp-processor.c b/src/core/hp-mp-processor.c index 7f2c8ab3f..427c1a2dd 100644 --- a/src/core/hp-mp-processor.c +++ b/src/core/hp-mp-processor.c @@ -15,6 +15,7 @@ #include "player/player-effects.h" #include "player/player-race-types.h" #include "player/player-race.h" +#include "player/special-defense-types.h" #include "util/bit-flags-calculator.h" #include "view/display-messages.h" #include "world/world.h" diff --git a/src/core/hp-mp-regenerator.c b/src/core/hp-mp-regenerator.c index 1b7a74ee5..084ad7baa 100644 --- a/src/core/hp-mp-regenerator.c +++ b/src/core/hp-mp-regenerator.c @@ -4,6 +4,7 @@ #include "monster-race/monster-race.h" #include "monster-race/race-flags2.h" #include "monster/monster-status.h" +#include "player/special-defense-types.h" /*!<広域マップ移動時の自然回復処理カウンタ(広域マップ1マス毎に20回処理を基本とする)*/ int wild_regen = 20; diff --git a/src/core/player-processor.c b/src/core/player-processor.c index 78024042b..bd8c134e4 100644 --- a/src/core/player-processor.c +++ b/src/core/player-processor.c @@ -29,6 +29,7 @@ #include "player/player-effects.h" #include "player/player-move.h" #include "player/player-skill.h" +#include "player/special-defense-types.h" #include "spell-realm/spells-song.h" #include "spell-kind/spells-random.h" #include "spell-realm/spells-hex.h" diff --git a/src/dungeon/dungeon-processor.c b/src/dungeon/dungeon-processor.c index f3f0fd248..b84998d37 100644 --- a/src/dungeon/dungeon-processor.c +++ b/src/dungeon/dungeon-processor.c @@ -23,6 +23,7 @@ #include "monster/monster-util.h" #include "player/player-effects.h" #include "player/player-move.h" +#include "player/special-defense-types.h" #include "realm/realm-song-numbers.h" #include "realm/realm-song.h" #include "view/display-messages.h" diff --git a/src/effect/effect-feature.c b/src/effect/effect-feature.c index 8a5998385..00d846725 100644 --- a/src/effect/effect-feature.c +++ b/src/effect/effect-feature.c @@ -8,6 +8,7 @@ #include "main/sound-of-music.h" #include "monster/monster-update.h" #include "player/player-effects.h" +#include "player/special-defense-types.h" #include "room/rooms.h" #include "spell/process-effect.h" // 暫定、後で消す. #include "spell/spell-types.h" diff --git a/src/effect/effect-player.c b/src/effect/effect-player.c index 10fe004ba..a20cfde2d 100644 --- a/src/effect/effect-player.c +++ b/src/effect/effect-player.c @@ -17,6 +17,7 @@ #include "monster/monster-description-types.h" #include "player/player-effects.h" #include "player/player-move.h" +#include "player/special-defense-types.h" #include "realm/realm-hex-numbers.h" #include "spell-realm/spells-hex.h" #include "spell/spell-types.h" diff --git a/src/floor/floor-events.c b/src/floor/floor-events.c index 38974d7d8..2812759c9 100644 --- a/src/floor/floor-events.c +++ b/src/floor/floor-events.c @@ -21,6 +21,7 @@ #include "object/object-mark-types.h" #include "object/object-value.h" #include "object-enchant/special-object-flags.h" +#include "player/special-defense-types.h" #include "sv-definition/sv-amulet-types.h" #include "sv-definition/sv-protector-types.h" #include "sv-definition/sv-ring-types.h" diff --git a/src/floor/floor-save.c b/src/floor/floor-save.c index b271077f1..866971b20 100644 --- a/src/floor/floor-save.c +++ b/src/floor/floor-save.c @@ -54,6 +54,7 @@ #include "player/player-class.h" #include "player/player-effects.h" #include "player/player-personalities-types.h" +#include "player/special-defense-types.h" #include "spell-kind/spells-floor.h" #include "system/system-variables.h" #include "util/angband-files.h" diff --git a/src/floor/floor.c b/src/floor/floor.c index 6d848b318..4c27e794a 100644 --- a/src/floor/floor.c +++ b/src/floor/floor.c @@ -21,6 +21,7 @@ #include "object/object-kind.h" #include "perception/object-perception.h" #include "player/player-effects.h" +#include "player/special-defense-types.h" #include "room/rooms.h" #include "util/bit-flags-calculator.h" #include "view/display-messages.h" diff --git a/src/io/input-key-processor.c b/src/io/input-key-processor.c index 6d396028c..f5064c768 100644 --- a/src/io/input-key-processor.c +++ b/src/io/input-key-processor.c @@ -64,6 +64,7 @@ #include "player/player-class.h" #include "player/player-effects.h" #include "player/player-move.h" // do_cmd_travel() がある。後で移設する. +#include "player/special-defense-types.h" #include "spell/spells-object.h" #include "store/store-util.h" #include "store/store.h" // do_cmd_store() がある。後で移設する. diff --git a/src/io/load.c b/src/io/load.c index 5da4cde00..1d17fe969 100644 --- a/src/io/load.c +++ b/src/io/load.c @@ -72,6 +72,7 @@ #include "player/player-sex.h" #include "player/player-skill.h" #include "player/race-info-table.h" +#include "player/special-defense-types.h" #include "spell/spells-status.h" #include "store/store-util.h" #include "store/store.h" diff --git a/src/mind/mind-ninja.c b/src/mind/mind-ninja.c index 0dd465097..14ac29d93 100644 --- a/src/mind/mind-ninja.c +++ b/src/mind/mind-ninja.c @@ -16,6 +16,7 @@ #include "object/object-generator.h" #include "object/object-kind-hook.h" #include "player/player-effects.h" +#include "player/special-defense-types.h" #include "spell-kind/spells-teleport.h" #include "util/bit-flags-calculator.h" #include "view/display-messages.h" diff --git a/src/mind/mind.c b/src/mind/mind.c index 626ac2b07..bb7e1243d 100644 --- a/src/mind/mind.c +++ b/src/mind/mind.c @@ -47,6 +47,7 @@ #include "player/player-effects.h" #include "player/player-move.h" #include "player/player-status.h" +#include "player/special-defense-types.h" #include "spell/process-effect.h" #include "spell-kind/earthquake.h" #include "spell-kind/spells-detection.h" diff --git a/src/mind/monk-attack.c b/src/mind/monk-attack.c index 9f0f5134d..8f9866eb7 100644 --- a/src/mind/monk-attack.c +++ b/src/mind/monk-attack.c @@ -20,6 +20,7 @@ #include "monster-race/race-flags1.h" #include "monster-race/race-flags3.h" #include "monster/monster-status.h" +#include "player/special-defense-types.h" #include "util/string-processor.h" #include "view/display-messages.h" #include "world/world.h" diff --git a/src/mind/stances-table.h b/src/mind/stances-table.h index dc707c737..9ad20fbf2 100644 --- a/src/mind/stances-table.h +++ b/src/mind/stances-table.h @@ -1,5 +1,6 @@ #pragma once +#include "player/special-defense-types.h" #include "system/angband.h" typedef struct blow_stance { diff --git a/src/monster-attack/monster-attack-player.c b/src/monster-attack/monster-attack-player.c index b0d43cd68..b04bd2c44 100644 --- a/src/monster-attack/monster-attack-player.c +++ b/src/monster-attack/monster-attack-player.c @@ -36,6 +36,7 @@ #include "player/player-effects.h" #include "player/player-move.h" #include "player/player-skill.h" +#include "player/special-defense-types.h" #include "realm/realm-hex-numbers.h" #include "spell-kind/spells-teleport.h" #include "spell-realm/spells-hex.h" diff --git a/src/monster/monster-processor.c b/src/monster/monster-processor.c index bfb2dff60..8d94836a0 100644 --- a/src/monster/monster-processor.c +++ b/src/monster/monster-processor.c @@ -51,6 +51,7 @@ #include "pet/pet-fall-off.h" #include "player/avatar.h" #include "player/player-move.h" +#include "player/special-defense-types.h" #include "spell-realm/spells-hex.h" #include "spell/spells-summon.h" #include "view/display-messages.h" diff --git a/src/monster/monster-status.c b/src/monster/monster-status.c index b38352c0d..998a01f5a 100644 --- a/src/monster/monster-status.c +++ b/src/monster/monster-status.c @@ -47,6 +47,7 @@ #include "player/avatar.h" #include "player/player-effects.h" #include "player/player-personalities-types.h" +#include "player/special-defense-types.h" #include "spell-kind/spells-random.h" #include "spell/spells-summon.h" #include "view/display-messages.h" diff --git a/src/monster/monster-update.c b/src/monster/monster-update.c index 1a6814f91..1caededa5 100644 --- a/src/monster/monster-update.c +++ b/src/monster/monster-update.c @@ -22,6 +22,7 @@ #include "monster/smart-learn-types.h" #include "player/eldritch-horror.h" #include "player/player-move.h" +#include "player/special-defense-types.h" /*! * @brief 騎乗中のモンスター情報を更新する diff --git a/src/mspell/mspells1.c b/src/mspell/mspells1.c index 04f0e7db8..331426ccf 100644 --- a/src/mspell/mspells1.c +++ b/src/mspell/mspells1.c @@ -44,6 +44,7 @@ #include "player/player-race-types.h" #include "player/player-race.h" #include "player/player-status.h" +#include "player/special-defense-types.h" #include "realm/realm-song-numbers.h" #include "spell-kind/spells-teleport.h" #include "spell-realm/spells-hex.h" diff --git a/src/object/warning.c b/src/object/warning.c index 984101a23..c9050faa0 100644 --- a/src/object/warning.c +++ b/src/object/warning.c @@ -26,6 +26,7 @@ #include "player/player-move.h" #include "player/player-race-types.h" #include "player/player-status.h" +#include "player/special-defense-types.h" #include "spell/spell-types.h" #include "util/bit-flags-calculator.h" #include "view/display-messages.h" diff --git a/src/player/digestion-processor.c b/src/player/digestion-processor.c index b9c5d06fa..ae0b3de81 100644 --- a/src/player/digestion-processor.c +++ b/src/player/digestion-processor.c @@ -4,6 +4,7 @@ #include "player/player-damage.h" #include "player/player-effects.h" #include "player/player-move.h" +#include "player/special-defense-types.h" #include "view/display-messages.h" #include "world/world.h" diff --git a/src/player/permanent-resistances.c b/src/player/permanent-resistances.c index 6d417d1c8..f1ad14068 100644 --- a/src/player/permanent-resistances.c +++ b/src/player/permanent-resistances.c @@ -1,8 +1,9 @@ #include "permanent-resistances.h" +#include "object-enchant/tr-types.h" #include "player/player-personalities-types.h" #include "player/player-race-types.h" #include "player/player-race.h" -#include "object-enchant/tr-types.h" +#include "player/special-defense-types.h" #include "system/object-type-definition.h" #include "util/bit-flags-calculator.h" diff --git a/src/player/player-damage.c b/src/player/player-damage.c index 0fc544f8e..de489cf83 100644 --- a/src/player/player-damage.c +++ b/src/player/player-damage.c @@ -43,6 +43,7 @@ #include "player/player-race-types.h" #include "player/player-status.h" #include "player/race-info-table.h" +#include "player/special-defense-types.h" #include "term/screen-processor.h" #include "term/term-color-types.h" #include "util/bit-flags-calculator.h" diff --git a/src/player/player-status.c b/src/player/player-status.c index b4d539697..75b70b714 100644 --- a/src/player/player-status.c +++ b/src/player/player-status.c @@ -60,6 +60,7 @@ #include "player/player-race-types.h" #include "player/player-skill.h" #include "player/race-info-table.h" +#include "player/special-defense-types.h" #include "realm/realm-hex-numbers.h" #include "realm/realm-names-table.h" #include "realm/realm-song-numbers.h" diff --git a/src/player/player-status.h b/src/player/player-status.h index 05e27f304..267f85b4e 100644 --- a/src/player/player-status.h +++ b/src/player/player-status.h @@ -358,30 +358,8 @@ typedef struct player_type #define ATTACK_HOLY 0x00000200 /*!< プレイヤーのステータス:対邪?(未使用) */ #define ATTACK_SUIKEN 0x00000400 /*!< プレイヤーのステータス:酔拳 */ - /* - * p_ptr->special_defenseによるプレイヤーの防御状態の定義 / Bit flags for the "p_ptr->special_defense" variable. -LM- - */ + /* プレイヤーの防御状態の定義 / Bit flags for the "p_ptr->special_defense" variable. -LM- */ BIT_FLAGS special_defense; -#define DEFENSE_ACID 0x00000001 /*!< プレイヤーのステータス:酸免疫 */ -#define DEFENSE_ELEC 0x00000002 /*!< プレイヤーのステータス:電撃免疫 */ -#define DEFENSE_FIRE 0x00000004 /*!< プレイヤーのステータス:火炎免疫 */ -#define DEFENSE_COLD 0x00000008 /*!< プレイヤーのステータス:冷気免疫 */ -#define DEFENSE_POIS 0x00000010 /*!< プレイヤーのステータス:毒免疫 */ -#define KAMAE_GENBU 0x00000020 /*!< プレイヤーのステータス:玄武の構え */ -#define KAMAE_BYAKKO 0x00000040 /*!< プレイヤーのステータス:白虎の構え */ -#define KAMAE_SEIRYU 0x00000080 /*!< プレイヤーのステータス:青竜の構え */ -#define KAMAE_SUZAKU 0x00000100 /*!< プレイヤーのステータス:朱雀の構え */ -#define KATA_IAI 0x00000200 /*!< プレイヤーのステータス:居合 */ -#define KATA_FUUJIN 0x00000400 /*!< プレイヤーのステータス:風塵 */ -#define KATA_KOUKIJIN 0x00000800 /*!< プレイヤーのステータス:降鬼陣 */ -#define KATA_MUSOU 0x00001000 /*!< プレイヤーのステータス:無想 */ -#define NINJA_KAWARIMI 0x00002000 /*!< プレイヤーのステータス:変わり身 */ -#define NINJA_S_STEALTH 0x00004000 /*!< プレイヤーのステータス:超隠密 */ -#define MAX_KAMAE 4 /*!< 修行僧の構え最大数 */ -#define KAMAE_MASK (KAMAE_GENBU | KAMAE_BYAKKO | KAMAE_SEIRYU | KAMAE_SUZAKU) /*!< 修行僧の構えビット配列 */ -#define MAX_KATA 4 /*!< 修行僧の型最大数 */ -#define KATA_MASK (KATA_IAI | KATA_FUUJIN | KATA_KOUKIJIN | KATA_MUSOU) /*!< 修行僧の型ビット配列 */ - ACTION_IDX action; /* Currently action */ #define ACTION_NONE 0 /*!< 持続行動: なし */ #define ACTION_SEARCH 1 /*!< 持続行動: 探索 */ diff --git a/src/player/race-resistances.c b/src/player/race-resistances.c index c79eeaf73..be2009b01 100644 --- a/src/player/race-resistances.c +++ b/src/player/race-resistances.c @@ -3,6 +3,7 @@ #include "object/object-flags.h" #include "object-enchant/tr-types.h" #include "player/player-race.h" +#include "player/special-defense-types.h" #include "util/bit-flags-calculator.h" /*! diff --git a/src/player/special-defense-types.h b/src/player/special-defense-types.h new file mode 100644 index 000000000..6582d8f18 --- /dev/null +++ b/src/player/special-defense-types.h @@ -0,0 +1,25 @@ +#pragma once + +typedef enum special_defence { + DEFENSE_ACID = 0x00000001, /*!< プレイヤーのステータス:酸免疫 */ + DEFENSE_ELEC = 0x00000002, /*!< プレイヤーのステータス:電撃免疫 */ + DEFENSE_FIRE = 0x00000004, /*!< プレイヤーのステータス:火炎免疫 */ + DEFENSE_COLD = 0x00000008, /*!< プレイヤーのステータス:冷気免疫 */ + DEFENSE_POIS = 0x00000010, /*!< プレイヤーのステータス:毒免疫 */ + KAMAE_GENBU = 0x00000020, /*!< プレイヤーのステータス:玄武の構え */ + KAMAE_BYAKKO = 0x00000040, /*!< プレイヤーのステータス:白虎の構え */ + KAMAE_SEIRYU = 0x00000080, /*!< プレイヤーのステータス:青竜の構え */ + KAMAE_SUZAKU = 0x00000100, /*!< プレイヤーのステータス:朱雀の構え */ + KATA_IAI = 0x00000200, /*!< プレイヤーのステータス:居合 */ + KATA_FUUJIN = 0x00000400, /*!< プレイヤーのステータス:風塵 */ + KATA_KOUKIJIN = 0x00000800, /*!< プレイヤーのステータス:降鬼陣 */ + KATA_MUSOU = 0x00001000, /*!< プレイヤーのステータス:無想 */ + NINJA_KAWARIMI = 0x00002000, /*!< プレイヤーのステータス:変わり身 */ + NINJA_S_STEALTH = 0x00004000, /*!< プレイヤーのステータス:超隠密 */ +} special_defence; + +#define MAX_KAMAE 4 /*!< 修行僧の構え最大数 */ +#define KAMAE_MASK (KAMAE_GENBU | KAMAE_BYAKKO | KAMAE_SEIRYU | KAMAE_SUZAKU) /*!< 修行僧の構えビット配列 */ + +#define MAX_KATA 4 /*!< 修行僧の型最大数 */ +#define KATA_MASK (KATA_IAI | KATA_FUUJIN | KATA_KOUKIJIN | KATA_MUSOU) /*!< 修行僧の型ビット配列 */ diff --git a/src/player/temporary-resistances.c b/src/player/temporary-resistances.c index b7eba7e12..ccd06e293 100644 --- a/src/player/temporary-resistances.c +++ b/src/player/temporary-resistances.c @@ -2,6 +2,7 @@ #include "object-enchant/tr-types.h" #include "player/player-race-types.h" #include "player/player-race.h" +#include "player/special-defense-types.h" #include "realm/realm-hex-numbers.h" #include "realm/realm-song-numbers.h" #include "realm/realm-types.h" diff --git a/src/spell-kind/earthquake.c b/src/spell-kind/earthquake.c index 9a4a7173d..e8d658051 100644 --- a/src/spell-kind/earthquake.c +++ b/src/spell-kind/earthquake.c @@ -20,6 +20,7 @@ #include "player/player-damage.h" #include "player/player-effects.h" #include "player/player-move.h" +#include "player/special-defense-types.h" #include "util/bit-flags-calculator.h" #include "view/display-messages.h" diff --git a/src/spell-kind/spells-floor.c b/src/spell-kind/spells-floor.c index 758e84c85..3c968265e 100644 --- a/src/spell-kind/spells-floor.c +++ b/src/spell-kind/spells-floor.c @@ -35,6 +35,7 @@ #include "object/object-mark-types.h" #include "perception/object-perception.h" #include "player/player-effects.h" +#include "player/special-defense-types.h" #include "spell-kind/spells-teleport.h" #include "spell/process-effect.h" #include "spell/spell-types.h" diff --git a/src/spell-kind/spells-lite.c b/src/spell-kind/spells-lite.c index 81fc50bce..ba4aa2536 100644 --- a/src/spell-kind/spells-lite.c +++ b/src/spell-kind/spells-lite.c @@ -10,6 +10,7 @@ #include "monster/monster-status.h" #include "monster/monster-update.h" #include "player/player-effects.h" +#include "player/special-defense-types.h" #include "spell/process-effect.h" #include "spell-kind/spells-launcher.h" #include "spell/spell-types.h" diff --git a/src/view/status-first-page.c b/src/view/status-first-page.c index 3b62dcabe..cbd938c1a 100644 --- a/src/view/status-first-page.c +++ b/src/view/status-first-page.c @@ -16,6 +16,7 @@ #include "object-enchant/tr-types.h" #include "object/object-flags.h" #include "perception/object-perception.h" +#include "player/special-defense-types.h" #include "sv-definition/sv-weapon-types.h" #include "term/term-color-types.h" #include "util/bit-flags-calculator.h"