From bab19e75721209b9ce50a011225a80e537b34158 Mon Sep 17 00:00:00 2001 From: deskull Date: Sat, 1 Jun 2019 17:19:02 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#37353=20PW=5F*=20=E5=AE=9A?= =?utf8?q?=E7=BE=A9=E3=82=92=20view-mainwindow.h=20=E3=81=B8=E7=A7=BB?= =?utf8?q?=E5=8B=95=EF=BC=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/artifact.c | 1 + src/autopick.c | 1 + src/cmd-activate.c | 1 + src/cmd-dump.c | 1 + src/cmd-eat.c | 1 + src/cmd-item.c | 1 + src/cmd-quaff.c | 1 + src/cmd-smith.c | 1 + src/cmd-usestaff.c | 1 + src/cmd-zaprod.c | 1 + src/cmd-zapwand.c | 1 + src/defines.h | 21 --------------------- src/object-hook.c | 1 + src/player-damage.c | 1 + src/view-mainwindow.h | 21 +++++++++++++++++++++ src/wizard2.c | 1 + 16 files changed, 35 insertions(+), 21 deletions(-) diff --git a/src/artifact.c b/src/artifact.c index 442b2484f..cee9d96e9 100644 --- a/src/artifact.c +++ b/src/artifact.c @@ -30,6 +30,7 @@ #include "files.h" #include "grid.h" #include "monster.h" +#include "view-mainwindow.h" /* * The artifact arrays diff --git a/src/autopick.c b/src/autopick.c index 348f9d3d0..86b3bf439 100644 --- a/src/autopick.c +++ b/src/autopick.c @@ -34,6 +34,7 @@ #include "world.h" #include "monster.h" #include "monsterrace.h" +#include "view-mainwindow.h" #define MAX_LINELEN 1024 diff --git a/src/cmd-activate.c b/src/cmd-activate.c index 337e49d72..e38c51a5d 100644 --- a/src/cmd-activate.c +++ b/src/cmd-activate.c @@ -32,6 +32,7 @@ #include "targeting.h" #include "realm-song.h" #include "player-race.h" +#include "view-mainwindow.h" /*! * @brief 装備耐性に準じたブレス効果の選択テーブル / diff --git a/src/cmd-dump.c b/src/cmd-dump.c index 99cc7a591..f55652cf1 100644 --- a/src/cmd-dump.c +++ b/src/cmd-dump.c @@ -79,6 +79,7 @@ #include "objectkind.h" #include "floor-town.h" #include "realm.h" +#include "view-mainwindow.h" /* * Mark strings for auto dump diff --git a/src/cmd-eat.c b/src/cmd-eat.c index 6fdafba78..c1ecf546e 100644 --- a/src/cmd-eat.c +++ b/src/cmd-eat.c @@ -22,6 +22,7 @@ #include "objectkind.h" #include "realm.h" #include "realm-song.h" +#include "view-mainwindow.h" /*! * @brief 食料を食べるコマンドのサブルーチン diff --git a/src/cmd-item.c b/src/cmd-item.c index 3dd50c7b7..756845069 100644 --- a/src/cmd-item.c +++ b/src/cmd-item.c @@ -45,6 +45,7 @@ #include "targeting.h" #include "snipe.h" #include "player-race.h" +#include "view-mainwindow.h" /*! * @brief 持ち物一覧を表示するコマンドのメインルーチン / Display p_ptr->inventory_list diff --git a/src/cmd-quaff.c b/src/cmd-quaff.c index c398785ff..501cbb1b2 100644 --- a/src/cmd-quaff.c +++ b/src/cmd-quaff.c @@ -26,6 +26,7 @@ #include "cmd-basic.h" #include "floor.h" #include "objectkind.h" +#include "view-mainwindow.h" /*! * @brief 薬を飲むコマンドのサブルーチン / diff --git a/src/cmd-smith.c b/src/cmd-smith.c index a80302290..b69d55225 100644 --- a/src/cmd-smith.c +++ b/src/cmd-smith.c @@ -10,6 +10,7 @@ #include "cmd-smith.h" #include "objectkind.h" #include "autopick.h" +#include "view-mainwindow.h" diff --git a/src/cmd-usestaff.c b/src/cmd-usestaff.c index 7440e96c1..8a21324e0 100644 --- a/src/cmd-usestaff.c +++ b/src/cmd-usestaff.c @@ -13,6 +13,7 @@ #include "cmd-basic.h" #include "floor.h" #include "objectkind.h" +#include "view-mainwindow.h" diff --git a/src/cmd-zaprod.c b/src/cmd-zaprod.c index efcfca302..d45d4c5c4 100644 --- a/src/cmd-zaprod.c +++ b/src/cmd-zaprod.c @@ -12,6 +12,7 @@ #include "cmd-basic.h" #include "floor.h" #include "targeting.h" +#include "view-mainwindow.h" /*! * @brief ロッドの効果を発動する diff --git a/src/cmd-zapwand.c b/src/cmd-zapwand.c index 014c94d27..394207394 100644 --- a/src/cmd-zapwand.c +++ b/src/cmd-zapwand.c @@ -11,6 +11,7 @@ #include "cmd-basic.h" #include "floor.h" #include "targeting.h" +#include "view-mainwindow.h" /*! * @brief 魔法棒の効果を発動する diff --git a/src/defines.h b/src/defines.h index a83f58c34..8d3ed5260 100644 --- a/src/defines.h +++ b/src/defines.h @@ -290,27 +290,6 @@ #define PROJECT_WHO_GLASS_SHARDS -2 /*!< 魔法効果の自然発生要因: 破壊されたガラス地形の破片 */ -/* - * Bit flags for the "p_ptr->window" variable (etc) - */ -#define PW_INVEN 0x00000001L /*!<サブウィンドウ描画フラグ: 所持品-装備品 / Display inven/equip */ -#define PW_EQUIP 0x00000002L /*!<サブウィンドウ描画フラグ: 装備品-所持品 / Display equip/inven */ -#define PW_SPELL 0x00000004L /*!<サブウィンドウ描画フラグ: 魔法一覧 / Display spell list */ -#define PW_PLAYER 0x00000008L /*!<サブウィンドウ描画フラグ: プレイヤーのステータス / Display character */ -#define PW_MONSTER_LIST 0x00000010L /*!<サブウィンドウ描画フラグ: 視界内モンスターの一覧 / Display monster list */ -/* xxx */ -/* xxx */ -#define PW_MESSAGE 0x00000040L /*!<サブウィンドウ描画フラグ: メッセージログ / Display messages */ -#define PW_OVERHEAD 0x00000080L /*!<サブウィンドウ描画フラグ: 周辺の光景 / Display overhead view */ -#define PW_MONSTER 0x00000100L /*!<サブウィンドウ描画フラグ: モンスターの思い出 / Display monster recall */ -#define PW_OBJECT 0x00000200L /*!<サブウィンドウ描画フラグ: アイテムの知識 / Display object recall */ -#define PW_DUNGEON 0x00000400L /*!<サブウィンドウ描画フラグ: ダンジョンの地形 / Display dungeon view */ -#define PW_SNAPSHOT 0x00000800L /*!<サブウィンドウ描画フラグ: 記念写真 / Display snap-shot */ -/* xxx */ -/* xxx */ -#define PW_BORG_1 0x00004000L /*!<サブウィンドウ描画フラグ: ボーグメッセージ / Display borg messages */ -#define PW_BORG_2 0x00008000L /*!<サブウィンドウ描画フラグ: ボーグステータス / Display borg status */ - /* Empty hand status */ #define EMPTY_HAND_NONE 0x0000 /* Both hands are used */ #define EMPTY_HAND_LARM 0x0001 /* Left hand is empty */ diff --git a/src/object-hook.c b/src/object-hook.c index 5f813142c..fc11c9a24 100644 --- a/src/object-hook.c +++ b/src/object-hook.c @@ -11,6 +11,7 @@ #include "quest.h" #include "world.h" #include "objectkind.h" +#include "view-mainwindow.h" /*! * @brief 対象のアイテムが矢やクロスボウの矢の材料になるかを返す。/ diff --git a/src/player-damage.c b/src/player-damage.c index dc170a0c8..c1a322d17 100644 --- a/src/player-damage.c +++ b/src/player-damage.c @@ -11,6 +11,7 @@ #include "player-effects.h" #include "monster-spell.h" #include "world.h" +#include "view-mainwindow.h" /*! diff --git a/src/view-mainwindow.h b/src/view-mainwindow.h index cf2dcc8f4..22adb39d8 100644 --- a/src/view-mainwindow.h +++ b/src/view-mainwindow.h @@ -23,6 +23,27 @@ extern bool change_panel(POSITION dy, POSITION dx); extern void window_stuff(void); +/* + * Bit flags for the "window" variable (etc) + */ +#define PW_INVEN 0x00000001L /*!<サブウィンドウ描画フラグ: 所持品-装備品 / Display inven/equip */ +#define PW_EQUIP 0x00000002L /*!<サブウィンドウ描画フラグ: 装備品-所持品 / Display equip/inven */ +#define PW_SPELL 0x00000004L /*!<サブウィンドウ描画フラグ: 魔法一覧 / Display spell list */ +#define PW_PLAYER 0x00000008L /*!<サブウィンドウ描画フラグ: プレイヤーのステータス / Display character */ +#define PW_MONSTER_LIST 0x00000010L /*!<サブウィンドウ描画フラグ: 視界内モンスターの一覧 / Display monster list */ + /* xxx */ + /* xxx */ +#define PW_MESSAGE 0x00000040L /*!<サブウィンドウ描画フラグ: メッセージログ / Display messages */ +#define PW_OVERHEAD 0x00000080L /*!<サブウィンドウ描画フラグ: 周辺の光景 / Display overhead view */ +#define PW_MONSTER 0x00000100L /*!<サブウィンドウ描画フラグ: モンスターの思い出 / Display monster recall */ +#define PW_OBJECT 0x00000200L /*!<サブウィンドウ描画フラグ: アイテムの知識 / Display object recall */ +#define PW_DUNGEON 0x00000400L /*!<サブウィンドウ描画フラグ: ダンジョンの地形 / Display dungeon view */ +#define PW_SNAPSHOT 0x00000800L /*!<サブウィンドウ描画フラグ: 記念写真 / Display snap-shot */ +/* xxx */ +/* xxx */ +#define PW_BORG_1 0x00004000L /*!<サブウィンドウ描画フラグ: ボーグメッセージ / Display borg messages */ +#define PW_BORG_2 0x00008000L /*!<サブウィンドウ描画フラグ: ボーグステータス / Display borg status */ + /* * Bit flags for the "redraw" variable diff --git a/src/wizard2.c b/src/wizard2.c index 21c8c267b..9b3399ed2 100644 --- a/src/wizard2.c +++ b/src/wizard2.c @@ -47,6 +47,7 @@ #include "bldg.h" #include "objectkind.h" #include "targeting.h" +#include "view-mainwindow.h" #ifdef ALLOW_WIZARD -- 2.11.0