• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisionbab19e75721209b9ce50a011225a80e537b34158 (tree)
Time2019-06-01 17:19:02
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 PW_* 定義を view-mainwindow.h へ移動.

Change Summary

Incremental Difference

--- a/src/artifact.c
+++ b/src/artifact.c
@@ -30,6 +30,7 @@
3030 #include "files.h"
3131 #include "grid.h"
3232 #include "monster.h"
33+#include "view-mainwindow.h"
3334
3435 /*
3536 * The artifact arrays
--- a/src/autopick.c
+++ b/src/autopick.c
@@ -34,6 +34,7 @@
3434 #include "world.h"
3535 #include "monster.h"
3636 #include "monsterrace.h"
37+#include "view-mainwindow.h"
3738
3839 #define MAX_LINELEN 1024
3940
--- a/src/cmd-activate.c
+++ b/src/cmd-activate.c
@@ -32,6 +32,7 @@
3232 #include "targeting.h"
3333 #include "realm-song.h"
3434 #include "player-race.h"
35+#include "view-mainwindow.h"
3536
3637 /*!
3738 * @brief 装備耐性に準じたブレス効果の選択テーブル /
--- a/src/cmd-dump.c
+++ b/src/cmd-dump.c
@@ -79,6 +79,7 @@
7979 #include "objectkind.h"
8080 #include "floor-town.h"
8181 #include "realm.h"
82+#include "view-mainwindow.h"
8283
8384 /*
8485 * Mark strings for auto dump
--- a/src/cmd-eat.c
+++ b/src/cmd-eat.c
@@ -22,6 +22,7 @@
2222 #include "objectkind.h"
2323 #include "realm.h"
2424 #include "realm-song.h"
25+#include "view-mainwindow.h"
2526
2627 /*!
2728 * @brief 食料を食べるコマンドのサブルーチン
--- a/src/cmd-item.c
+++ b/src/cmd-item.c
@@ -45,6 +45,7 @@
4545 #include "targeting.h"
4646 #include "snipe.h"
4747 #include "player-race.h"
48+#include "view-mainwindow.h"
4849
4950 /*!
5051 * @brief 持ち物一覧を表示するコマンドのメインルーチン / Display p_ptr->inventory_list
--- a/src/cmd-quaff.c
+++ b/src/cmd-quaff.c
@@ -26,6 +26,7 @@
2626 #include "cmd-basic.h"
2727 #include "floor.h"
2828 #include "objectkind.h"
29+#include "view-mainwindow.h"
2930
3031 /*!
3132 * @brief 薬を飲むコマンドのサブルーチン /
--- a/src/cmd-smith.c
+++ b/src/cmd-smith.c
@@ -10,6 +10,7 @@
1010 #include "cmd-smith.h"
1111 #include "objectkind.h"
1212 #include "autopick.h"
13+#include "view-mainwindow.h"
1314
1415
1516
--- a/src/cmd-usestaff.c
+++ b/src/cmd-usestaff.c
@@ -13,6 +13,7 @@
1313 #include "cmd-basic.h"
1414 #include "floor.h"
1515 #include "objectkind.h"
16+#include "view-mainwindow.h"
1617
1718
1819
--- a/src/cmd-zaprod.c
+++ b/src/cmd-zaprod.c
@@ -12,6 +12,7 @@
1212 #include "cmd-basic.h"
1313 #include "floor.h"
1414 #include "targeting.h"
15+#include "view-mainwindow.h"
1516
1617 /*!
1718 * @brief ロッドの効果を発動する
--- a/src/cmd-zapwand.c
+++ b/src/cmd-zapwand.c
@@ -11,6 +11,7 @@
1111 #include "cmd-basic.h"
1212 #include "floor.h"
1313 #include "targeting.h"
14+#include "view-mainwindow.h"
1415
1516 /*!
1617 * @brief 魔法棒の効果を発動する
--- a/src/defines.h
+++ b/src/defines.h
@@ -290,27 +290,6 @@
290290 #define PROJECT_WHO_GLASS_SHARDS -2 /*!< 魔法効果の自然発生要因: 破壊されたガラス地形の破片 */
291291
292292
293-/*
294- * Bit flags for the "p_ptr->window" variable (etc)
295- */
296-#define PW_INVEN 0x00000001L /*!<サブウィンドウ描画フラグ: 所持品-装備品 / Display inven/equip */
297-#define PW_EQUIP 0x00000002L /*!<サブウィンドウ描画フラグ: 装備品-所持品 / Display equip/inven */
298-#define PW_SPELL 0x00000004L /*!<サブウィンドウ描画フラグ: 魔法一覧 / Display spell list */
299-#define PW_PLAYER 0x00000008L /*!<サブウィンドウ描画フラグ: プレイヤーのステータス / Display character */
300-#define PW_MONSTER_LIST 0x00000010L /*!<サブウィンドウ描画フラグ: 視界内モンスターの一覧 / Display monster list */
301-/* xxx */
302-/* xxx */
303-#define PW_MESSAGE 0x00000040L /*!<サブウィンドウ描画フラグ: メッセージログ / Display messages */
304-#define PW_OVERHEAD 0x00000080L /*!<サブウィンドウ描画フラグ: 周辺の光景 / Display overhead view */
305-#define PW_MONSTER 0x00000100L /*!<サブウィンドウ描画フラグ: モンスターの思い出 / Display monster recall */
306-#define PW_OBJECT 0x00000200L /*!<サブウィンドウ描画フラグ: アイテムの知識 / Display object recall */
307-#define PW_DUNGEON 0x00000400L /*!<サブウィンドウ描画フラグ: ダンジョンの地形 / Display dungeon view */
308-#define PW_SNAPSHOT 0x00000800L /*!<サブウィンドウ描画フラグ: 記念写真 / Display snap-shot */
309-/* xxx */
310-/* xxx */
311-#define PW_BORG_1 0x00004000L /*!<サブウィンドウ描画フラグ: ボーグメッセージ / Display borg messages */
312-#define PW_BORG_2 0x00008000L /*!<サブウィンドウ描画フラグ: ボーグステータス / Display borg status */
313-
314293 /* Empty hand status */
315294 #define EMPTY_HAND_NONE 0x0000 /* Both hands are used */
316295 #define EMPTY_HAND_LARM 0x0001 /* Left hand is empty */
--- a/src/object-hook.c
+++ b/src/object-hook.c
@@ -11,6 +11,7 @@
1111 #include "quest.h"
1212 #include "world.h"
1313 #include "objectkind.h"
14+#include "view-mainwindow.h"
1415
1516 /*!
1617 * @brief 対象のアイテムが矢やクロスボウの矢の材料になるかを返す。/
--- a/src/player-damage.c
+++ b/src/player-damage.c
@@ -11,6 +11,7 @@
1111 #include "player-effects.h"
1212 #include "monster-spell.h"
1313 #include "world.h"
14+#include "view-mainwindow.h"
1415
1516
1617 /*!
--- a/src/view-mainwindow.h
+++ b/src/view-mainwindow.h
@@ -23,6 +23,27 @@ extern bool change_panel(POSITION dy, POSITION dx);
2323
2424 extern void window_stuff(void);
2525
26+/*
27+ * Bit flags for the "window" variable (etc)
28+ */
29+#define PW_INVEN 0x00000001L /*!<サブウィンドウ描画フラグ: 所持品-装備品 / Display inven/equip */
30+#define PW_EQUIP 0x00000002L /*!<サブウィンドウ描画フラグ: 装備品-所持品 / Display equip/inven */
31+#define PW_SPELL 0x00000004L /*!<サブウィンドウ描画フラグ: 魔法一覧 / Display spell list */
32+#define PW_PLAYER 0x00000008L /*!<サブウィンドウ描画フラグ: プレイヤーのステータス / Display character */
33+#define PW_MONSTER_LIST 0x00000010L /*!<サブウィンドウ描画フラグ: 視界内モンスターの一覧 / Display monster list */
34+ /* xxx */
35+ /* xxx */
36+#define PW_MESSAGE 0x00000040L /*!<サブウィンドウ描画フラグ: メッセージログ / Display messages */
37+#define PW_OVERHEAD 0x00000080L /*!<サブウィンドウ描画フラグ: 周辺の光景 / Display overhead view */
38+#define PW_MONSTER 0x00000100L /*!<サブウィンドウ描画フラグ: モンスターの思い出 / Display monster recall */
39+#define PW_OBJECT 0x00000200L /*!<サブウィンドウ描画フラグ: アイテムの知識 / Display object recall */
40+#define PW_DUNGEON 0x00000400L /*!<サブウィンドウ描画フラグ: ダンジョンの地形 / Display dungeon view */
41+#define PW_SNAPSHOT 0x00000800L /*!<サブウィンドウ描画フラグ: 記念写真 / Display snap-shot */
42+/* xxx */
43+/* xxx */
44+#define PW_BORG_1 0x00004000L /*!<サブウィンドウ描画フラグ: ボーグメッセージ / Display borg messages */
45+#define PW_BORG_2 0x00008000L /*!<サブウィンドウ描画フラグ: ボーグステータス / Display borg status */
46+
2647
2748 /*
2849 * Bit flags for the "redraw" variable
--- a/src/wizard2.c
+++ b/src/wizard2.c
@@ -47,6 +47,7 @@
4747 #include "bldg.h"
4848 #include "objectkind.h"
4949 #include "targeting.h"
50+#include "view-mainwindow.h"
5051
5152 #ifdef ALLOW_WIZARD
5253
Show on old repository browser