OSDN Git Service

[Refactor] #37353 forget_lite() を floor_event() に移動。
authordeskull <deskull@users.sourceforge.jp>
Thu, 18 Apr 2019 06:00:42 +0000 (15:00 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Thu, 18 Apr 2019 06:00:42 +0000 (15:00 +0900)
12 files changed:
src/bldg.c
src/externs.h
src/files.c
src/floor-events.c
src/floor-events.h
src/floor-save.c
src/grid.c
src/grid.h
src/main-win.c
src/player-status.c
src/save.c
src/store.c

index 6941799..c75a9b5 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "angband.h"
 #include "floor.h"
+#include "floor-events.h"
 #include "object-boost.h"
 #include "object-flavor.h"
 #include "object-hook.h"
index 87d55e1..b654460 100644 (file)
@@ -421,10 +421,8 @@ extern bool cave_valid_bold(POSITION y, POSITION x);
 extern bool no_lite(void);
 extern void move_cursor_relative(int row, int col);
 extern void print_rel(SYMBOL_CODE c, TERM_COLOR a, TERM_LEN y, TERM_LEN x);
-extern void note_spot(POSITION y, POSITION x);
 extern void display_dungeon(void);
 extern void prt_path(POSITION y, POSITION x);
-extern void forget_lite(void);
 extern void update_lite(void);
 extern void forget_view(void);
 extern void update_view(void);
index a2b30b8..996002b 100644 (file)
@@ -34,6 +34,7 @@
 #include "spells.h"
 #include "term.h"
 #include "view-mainwindow.h"
+#include "floor-events.h"
 
 
 /*
index 9a8b897..9fbcbd2 100644 (file)
@@ -355,3 +355,30 @@ void glow_deep_lava_and_bldg(void)
 
        p_ptr->redraw |= (PR_MAP);
 }
+
+/*
+ * Actually erase the entire "lite" array, redrawing every grid
+ */
+void forget_lite(void)
+{
+       int i;
+       POSITION x, y;
+
+       /* None to forget */
+       if (!current_floor_ptr->lite_n) return;
+
+       /* Clear them all */
+       for (i = 0; i < current_floor_ptr->lite_n; i++)
+       {
+               y = current_floor_ptr->lite_y[i];
+               x = current_floor_ptr->lite_x[i];
+
+               /* Forget "LITE" flag */
+               current_floor_ptr->grid_array[y][x].info &= ~(CAVE_LITE);
+
+               /* lite_spot(y, x); Perhaps don't need? */
+       }
+
+       /* None left */
+       current_floor_ptr->lite_n = 0;
+}
index 12146ff..d029986 100644 (file)
@@ -1,7 +1,8 @@
 
-void day_break(void);
-void night_falls(void);
-MONSTER_NUMBER count_all_hostile_monsters(void);
-byte get_dungeon_feeling(void);
-void update_dungeon_feeling(void);
+extern void day_break(void);
+extern void night_falls(void);
+extern MONSTER_NUMBER count_all_hostile_monsters(void);
+extern byte get_dungeon_feeling(void);
+extern void update_dungeon_feeling(void);
 extern void glow_deep_lava_and_bldg(void);
+extern void forget_lite(void);
index 78c771f..b224c2a 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "angband.h"
 #include "floor.h"
+#include "floor-events.h"
 #include "generate.h"
 #include "grid.h"
 #include "monster.h"
index 71e837c..4b2cb2b 100644 (file)
@@ -1599,40 +1599,6 @@ void prt_path(POSITION y, POSITION x)
  */
 
 
-
-
-
-
-
-
- /*
-  * Actually erase the entire "lite" array, redrawing every grid
-  */
-void forget_lite(void)
-{
-       int i;
-       POSITION x, y;
-
-       /* None to forget */
-       if (!current_floor_ptr->lite_n) return;
-
-       /* Clear them all */
-       for (i = 0; i < current_floor_ptr->lite_n; i++)
-       {
-               y = current_floor_ptr->lite_y[i];
-               x = current_floor_ptr->lite_x[i];
-
-               /* Forget "LITE" flag */
-               current_floor_ptr->grid_array[y][x].info &= ~(CAVE_LITE);
-
-               /* lite_spot(y, x); Perhaps don't need? */
-       }
-
-       /* None left */
-       current_floor_ptr->lite_n = 0;
-}
-
-
 /*
  * For delayed visual update
  */
index c3e84a0..92532e1 100644 (file)
@@ -343,7 +343,6 @@ extern void lite_spot(POSITION y, POSITION x);
 extern void prt_map(void);
 extern void prt_path(POSITION y, POSITION x);
 extern void display_map(int *cy, int *cx);
-extern void forget_lite(void);
 extern void update_lite(void);
 extern void forget_view(void);
 extern void update_view(void);
index cd6dd93..b82cfd1 100644 (file)
@@ -99,6 +99,7 @@
 
 #include "angband.h"
 #include "view-mainwindow.h"
+#include "floor-events.h"
 
 #ifdef WINDOWS
 #include <windows.h>
index 68fef61..d629b35 100644 (file)
@@ -2,6 +2,7 @@
 #include "player-move.h"
 #include "player-status.h"
 #include "floor.h"
+#include "floor-events.h"
 #include "artifact.h"
 #include "avatar.h"
 #include "spells-status.h"
index 0838b2c..d9c37eb 100644 (file)
@@ -16,6 +16,7 @@
 #include "quest.h"
 #include "store.h"
 #include "wild.h"
+#include "floor-events.h"
 
 
 
index 2a727cb..ed02e1d 100644 (file)
@@ -23,6 +23,7 @@
 #include "player-status.h"
 #include "object-flavor.h"
 #include "object-hook.h"
+#include "floor-events.h"
 
 #define MIN_STOCK 12