OSDN Git Service

[Refactor] #37353 handle_stuff() と update_output() を core.c/h へ移動.
authordeskull <deskull@users.sourceforge.jp>
Mon, 20 May 2019 14:53:56 +0000 (23:53 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Mon, 20 May 2019 14:53:56 +0000 (23:53 +0900)
29 files changed:
src/cmd-hissatsu.c
src/cmd-item.c
src/cmd-mane.c
src/cmd-pet.c
src/cmd-spell.c
src/core.c
src/core.h
src/externs.h
src/melee1.c
src/mind.c
src/monster-status.c
src/mspells3.c
src/mutation.c
src/object1.c
src/player-effects.c
src/player-move.c
src/player-status.c
src/racial.c
src/realm-hissatsu.c
src/shoot.c
src/snipe.c
src/spells-status.c
src/spells1.c
src/spells2.c
src/spells3.c
src/store.c
src/view-mainwindow.c
src/view-mainwindow.h
src/wizard2.c

index b9a9cd3..ba14d6f 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "monsterrace-hook.h"
index 74c08ea..742cf5e 100644 (file)
@@ -12,6 +12,7 @@
 
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 #include "autopick.h"
 #include "term.h"
index 752b8ba..02dd29f 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "floor.h"
index cfb2097..2684acf 100644 (file)
@@ -1,4 +1,5 @@
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "cmd-dump.h"
index f33a46d..7f05ae2 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "cmd-dump.h"
index 212f568..a6d6658 100644 (file)
@@ -5895,3 +5895,23 @@ void close_game(void)
        /* Allow suspending now */
        signals_handle_tstp();
 }
+
+
+/*!
+ * @brief 全更新処理をチェックして処理していく
+ * Handle "p_ptr->update" and "p_ptr->redraw" and "p_ptr->window"
+ * @return なし
+ */
+void handle_stuff(void)
+{
+       if (p_ptr->update) update_creature(p_ptr);
+       if (p_ptr->redraw) redraw_stuff();
+       if (p_ptr->window) window_stuff();
+}
+
+void update_output(void)
+{
+       if (p_ptr->redraw) redraw_stuff();
+       if (p_ptr->window) window_stuff();
+}
+
index b867235..d6b9582 100644 (file)
@@ -26,3 +26,6 @@ extern void update_playtime(void);
 extern s32b turn_real(s32b hoge);
 extern void prevent_turn_overflow(void);
 extern void close_game(void);
+
+extern void handle_stuff(void);
+extern void update_output(void);
index 827eb99..c3009a8 100644 (file)
@@ -79,10 +79,6 @@ extern bool new_mane;
 extern DEPTH *max_dlv;
 extern bool use_menu;
 
-/* xtra1.c */
-extern void handle_stuff(void);
-extern void update_output(void);
-
 #ifdef MACINTOSH
 /* main-mac.c */
 /* extern void main(void); */
index 72d62d6..ba8a10b 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "artifact.h"
index 27fab7e..c539db4 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "mind.h"
index 6a62483..d973eb3 100644 (file)
@@ -1,4 +1,5 @@
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "creature.h"
index e2f18c8..7c3a2c2 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "floor.h"
index 61d2651..a2cbb47 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "cmd-dump.h"
index 20acc87..57d6e9f 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "artifact.h"
index 7b689b9..9d9e936 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "creature.h"
index 7d6fb1e..fd555e1 100644 (file)
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "autopick.h"
index 9215a97..edd358d 100644 (file)
@@ -1,4 +1,5 @@
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "quest.h"
index 525adb0..e7e384c 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "cmd-basic.h"
index 14f6cb5..739613e 100644 (file)
@@ -1,4 +1,5 @@
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "cmd-spell.h"
index 78b8011..cf3fd5b 100644 (file)
@@ -1,4 +1,5 @@
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "monster.h"
index 65bf445..643674f 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "player-status.h"
index 65d1130..ed33fa4 100644 (file)
@@ -1,4 +1,5 @@
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "avatar.h"
index 37dcf05..1742fb0 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "cmd-pet.h"
index 161c2f1..36c07c4 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 
 #include "creature.h"
index 2389ab4..035c382 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "angband.h"
 #include "bldg.h"
+#include "core.h"
 #include "util.h"
 
 #include "creature.h"
index 4b4b385..1c4977a 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 #include "term.h"
 
index b66b8d6..6407a87 100644 (file)
@@ -2063,7 +2063,7 @@ bool is_heavy_shoot(object_type *o_ptr)
  * @return なし
  * @details 更新処理の対象はゲーム中の全描画処理
  */
-static void redraw_stuff(void)
+void redraw_stuff(void)
 {
        if (!p_ptr->redraw) return;
 
@@ -2248,7 +2248,7 @@ static void redraw_stuff(void)
  * @return なし
  * @details 更新処理の対象はサブウィンドウ全般
  */
-static void window_stuff(void)
+void window_stuff(void)
 {
        int j;
        BIT_FLAGS mask = 0L;
@@ -2340,25 +2340,6 @@ static void window_stuff(void)
        }
 }
 
-
-/*!
- * @brief 全更新処理をチェックして処理していく
- * Handle "p_ptr->update" and "p_ptr->redraw" and "p_ptr->window"
- * @return なし
- */
-void handle_stuff(void)
-{
-       if (p_ptr->update) update_creature(p_ptr);
-       if (p_ptr->redraw) redraw_stuff();
-       if (p_ptr->window) window_stuff();
-}
-
-void update_output(void)
-{
-       if (p_ptr->redraw) redraw_stuff();
-       if (p_ptr->window) window_stuff();
-}
-
 /*!
  * @brief コンソールのリサイズに合わせてマップを再描画する /
  * Map resizing whenever the main term changes size
index de26232..5d6461d 100644 (file)
@@ -20,3 +20,6 @@ extern void resize_map(void);
 extern void redraw_window(void);
 extern bool change_panel(POSITION dy, POSITION dx);
 
+extern void window_stuff(void);
+extern void redraw_stuff(void);
+
index 2aa9e7b..59cce03 100644 (file)
@@ -11,6 +11,8 @@
  */
 
 #include "angband.h"
+#include "core.h"
+
 #include "dungeon.h"
 #include "cmd-dump.h"
 #include "util.h"