OSDN Git Service

[Refactor] #37353 DEFENSE_* を player_type 構造体に移動。
authordeskull <deskull@users.sourceforge.jp>
Thu, 11 Apr 2019 14:35:56 +0000 (23:35 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Thu, 11 Apr 2019 14:35:56 +0000 (23:35 +0900)
src/defines.h
src/types.h

index 8f9a45b..65d7350 100644 (file)
 #define OD_FORCE_FLAVOR     0x00000080  /* Get un-shuffled flavor name */
 
 
-/*
- * p_ptr->special_defenseによるプレイヤーの防御状態の定義 / Bit flags for the "p_ptr->special_defense" variable. -LM-
- */
-#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) /*!< 修行僧の型ビット配列 */
-
-
 #define ACTION_NONE     0 /*!< 持続行動: なし */
 #define ACTION_SEARCH   1 /*!< 持続行動: 探索 */
 #define ACTION_REST     2 /*!< 持続行動: 休憩 */
index cf55763..e9868c3 100644 (file)
@@ -1259,7 +1259,30 @@ struct player_type
        #define ATTACK_HOLY             0x00000200 /*!< プレイヤーのステータス:対邪?(未使用) */
        #define ATTACK_SUIKEN   0x00000400 /*!< プレイヤーのステータス:酔拳 */
 
-       BIT_FLAGS special_defense;        /* Special block capacity -LM- */
+       /*
+        * p_ptr->special_defenseによるプレイヤーの防御状態の定義 / 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 */
 
        BIT_FLAGS spell_learned1;         /* bit mask of spells learned */