From 28bd5cc1f7bd8e57e76b60c40d69744e6fdaddc4 Mon Sep 17 00:00:00 2001 From: Deskull Date: Tue, 8 Jan 2019 22:54:05 +0900 Subject: [PATCH 1/1] =?utf8?q?[Refactor]=20#38852=20p=5Fptr->update=20?= =?utf8?q?=E3=81=AE=E3=83=93=E3=83=83=E3=83=88=E5=AE=9A=E7=BE=A9=E4=BD=8D?= =?utf8?q?=E7=BD=AE=E5=A4=89=E6=9B=B4=E3=80=82=20/=20Move=20bit=20definiti?= =?utf8?q?on=20for=20p=5Fptr->update.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/defines.h | 23 ----------------------- src/types.h | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/src/defines.h b/src/defines.h index 16c3058ff..48064578d 100644 --- a/src/defines.h +++ b/src/defines.h @@ -2650,29 +2650,6 @@ /* * p_ptr->updateに充てるプレイヤーステータス更新処理要求 / Bit flags for the "p_ptr->update" variable */ -#define PU_BONUS 0x00000001L /*!< ステータス更新フラグ: 能力値修正 / Calculate bonuses */ -#define PU_TORCH 0x00000002L /*!< ステータス更新フラグ: 光源半径 / Calculate torch radius */ -/* xxx (many) */ -#define PU_HP 0x00000010L /*!< ステータス更新フラグ: HP / Calculate chp and mhp */ -#define PU_MANA 0x00000020L /*!< ステータス更新フラグ: MP / Calculate csp and msp */ -#define PU_SPELLS 0x00000040L /*!< ステータス更新フラグ: 魔法学習数 / Calculate spells */ -/* xxx (many) */ -#define PU_COMBINE 0x00000100L /*!< アイテム処理フラグ: アイテムの結合を要する / Combine the pack */ -#define PU_REORDER 0x00000200L /*!< アイテム処理フラグ: アイテムの並び替えを要する / Reorder the pack */ -#define PU_AUTODESTROY 0x00000400L /*!< アイテム処理フラグ: アイテムの自動破壊を要する / Auto-destroy marked item */ -/* xxx (many) */ -#define PU_UN_VIEW 0x00010000L /*!< ステータス更新フラグ: 地形の視界外化 / Forget view */ -#define PU_UN_LITE 0x00020000L /*!< ステータス更新フラグ: 明暗範囲の視界外化 / Forget lite */ -/* xxx (many) */ -#define PU_VIEW 0x00100000L /*!< ステータス更新フラグ: 視界 / Update view */ -#define PU_LITE 0x00200000L /*!< ステータス更新フラグ: 明暗範囲 / Update lite */ -#define PU_MON_LITE 0x00400000L /*!< ステータス更新フラグ: モンスターの光源範囲 / Monster illumination */ -#define PU_DELAY_VIS 0x00800000L /*!< ステータス更新フラグ: 視界の追加更新 / Mega-Hack -- Delayed visual update */ -#define PU_MONSTERS 0x01000000L /*!< ステータス更新フラグ: モンスターのステータス / Update monsters */ -#define PU_DISTANCE 0x02000000L /*!< ステータス更新フラグ: プレイヤーとモンスターの距離 / Update distances */ -/* xxx */ -#define PU_FLOW 0x10000000L /*!< ステータス更新フラグ: プレイヤーから各マスへの到達距離 / Update flow */ -/* xxx (many) */ /* diff --git a/src/types.h b/src/types.h index 86d61382d..4d7af3f0a 100644 --- a/src/types.h +++ b/src/types.h @@ -1196,6 +1196,24 @@ struct player_type s16b cur_lite; /* Radius of lite (if any) */ BIT_FLAGS update; /* Pending Updates */ + #define PU_BONUS 0x00000001L /*!< ステータス更新フラグ: 能力値修正 / Calculate bonuses */ + #define PU_TORCH 0x00000002L /*!< ステータス更新フラグ: 光源半径 / Calculate torch radius */ + #define PU_HP 0x00000010L /*!< ステータス更新フラグ: HP / Calculate chp and mhp */ + #define PU_MANA 0x00000020L /*!< ステータス更新フラグ: MP / Calculate csp and msp */ + #define PU_SPELLS 0x00000040L /*!< ステータス更新フラグ: 魔法学習数 / Calculate spells */ + #define PU_COMBINE 0x00000100L /*!< アイテム処理フラグ: アイテムの結合を要する / Combine the pack */ + #define PU_REORDER 0x00000200L /*!< アイテム処理フラグ: アイテムの並び替えを要する / Reorder the pack */ + #define PU_AUTODESTROY 0x00000400L /*!< アイテム処理フラグ: アイテムの自動破壊を要する / Auto-destroy marked item */ + #define PU_UN_VIEW 0x00010000L /*!< ステータス更新フラグ: 地形の視界外化 / Forget view */ + #define PU_UN_LITE 0x00020000L /*!< ステータス更新フラグ: 明暗範囲の視界外化 / Forget lite */ + #define PU_VIEW 0x00100000L /*!< ステータス更新フラグ: 視界 / Update view */ + #define PU_LITE 0x00200000L /*!< ステータス更新フラグ: 明暗範囲 / Update lite */ + #define PU_MON_LITE 0x00400000L /*!< ステータス更新フラグ: モンスターの光源範囲 / Monster illumination */ + #define PU_DELAY_VIS 0x00800000L /*!< ステータス更新フラグ: 視界の追加更新 / Mega-Hack -- Delayed visual update */ + #define PU_MONSTERS 0x01000000L /*!< ステータス更新フラグ: モンスターのステータス / Update monsters */ + #define PU_DISTANCE 0x02000000L /*!< ステータス更新フラグ: プレイヤーとモンスターの距離 / Update distances */ + #define PU_FLOW 0x10000000L /*!< ステータス更新フラグ: プレイヤーから各マスへの到達距離 / Update flow */ + BIT_FLAGS redraw; /* Normal Redraws */ BIT_FLAGS window; /* Window Redraws */ -- 2.11.0