OSDN Git Service

[Refactor] #40570 Removed unused headers in rooms-builder.c
authorHourier <hourier@users.sourceforge.jp>
Fri, 24 Jul 2020 04:38:47 +0000 (13:38 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sun, 26 Jul 2020 08:04:20 +0000 (17:04 +0900)
src/action/movement-execution.c
src/floor/cave.c
src/floor/cave.h
src/floor/floor.h
src/room/rooms-builder.c

index c4267dd..82e569d 100644 (file)
@@ -5,6 +5,7 @@
 #include "core/disturbance.h"
 #include "core/player-update-types.h"
 #include "core/stuff-handler.h"
+#include "floor/cave.h"
 #include "floor/floor.h"
 #include "floor/pattern-walk.h"
 #include "game-option/input-options.h"
index 0594dc6..b33840f 100644 (file)
@@ -104,3 +104,8 @@ bool feat_supports_los(FEAT_IDX f_idx) { return have_flag(f_info[f_idx].flags, F
 bool cave_los_grid(grid_type *grid_ptr) { return feat_supports_los(grid_ptr->feat); }
 
 bool cave_have_flag_grid(grid_type *grid_ptr, int feature_flags) { return have_flag(f_info[grid_ptr->feat].flags, feature_flags); }
+
+/*
+ * Determine if a "feature" is "permanent wall"
+ */
+bool permanent_wall(feature_type *f_ptr) { return have_flag(f_ptr->flags, FF_WALL) && have_flag(f_ptr->flags, FF_PERMANENT); }
index 7411f0b..6af8c53 100644 (file)
@@ -3,6 +3,7 @@
 #include "system/angband.h"
 
 typedef enum feature_flag_type feature_flag_type;
+typedef struct feature_type feature_type;
 typedef struct grid_type grid_type;
 bool in_bounds(floor_type *floor_ptr, POSITION y, POSITION x);
 bool in_bounds2(floor_type *floor_ptr, POSITION y, POSITION x);
@@ -17,3 +18,4 @@ bool cave_los_bold(floor_type *floor_ptr, POSITION y, POSITION x);
 bool feat_supports_los(FEAT_IDX f_idx);
 bool cave_los_grid(grid_type *grid_ptr);
 bool cave_have_flag_grid(grid_type *grid_ptr, int feature_flags);
+bool permanent_wall(feature_type *f_ptr);
index d33af79..b539429 100644 (file)
@@ -74,13 +74,6 @@ extern floor_type floor_info;
     (((C)->info & (CAVE_VIEW)) != 0)
 
 /*
- * Determine if a "feature" is "permanent wall"
- */
-#define permanent_wall(F) \
-       (have_flag((F)->flags, FF_WALL) && \
-        have_flag((F)->flags, FF_PERMANENT))
-
-/*
  * Convert a "location" (Y,X) into a "grid" (G)
  */
 #define GRID(Y,X) \
index 21e2ceb..568dc64 100644 (file)
 #include "dungeon/dungeon-flag-types.h"
 #include "dungeon/dungeon.h"
 #include "floor/cave.h"
-#include "floor/floor-generate.h"
 #include "floor/floor.h"
-#include "game-option/birth-options.h"
-#include "game-option/cheat-types.h"
-#include "grid/feature-flag-types.h"
 #include "grid/grid.h"
-#include "grid/trap.h"
-#include "monster-floor/monster-generator.h"
-#include "monster-floor/place-monster-types.h"
-#include "object-enchant/item-apply-magic.h"
 #include "room/cave-filler.h"
 #include "room/lake-types.h"
-#include "room/room-generator.h"
-#include "room/room-info-table.h"
-#include "room/rooms-city.h"
-#include "room/rooms-fractal.h"
-#include "room/rooms-pit-nest.h"
-#include "room/rooms-special.h"
-#include "room/rooms-trap.h"
-#include "room/treasure-deployment.h"
-#include "system/dungeon-data-definition.h"
 #include "system/floor-type-definition.h"
-#include "util/bit-flags-calculator.h"
 #include "view/display-messages.h"
-#include "wizard/wizard-messages.h"
 
 /*!
  * @brief 1マスだけの部屋を作成し、上下左右いずれか一つに隠しドアを配置する。