OSDN Git Service

[Refactor] #37353 is_*_grid()の宣言をいくつか を grid.h に移動。 / Move some declarations, is_...
authordeskull <deskull@users.sourceforge.jp>
Fri, 22 Feb 2019 15:07:07 +0000 (00:07 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Fri, 22 Feb 2019 15:07:07 +0000 (00:07 +0900)
src/externs.h
src/floor-events.c
src/grid.h
src/melee1.c
src/mind.c
src/monster-process.c
src/monster2.c
src/wild.c

index 3e26a0d..e41e31d 100644 (file)
@@ -499,9 +499,7 @@ extern FEAT_IDX conv_dungeon_feat(FEAT_IDX newfeat);
 extern FEAT_IDX feat_state(FEAT_IDX feat, int action);
 extern void cave_alter_feat(POSITION y, POSITION x, int action);
 extern void remove_mirror(POSITION y, POSITION x);
-extern bool is_mirror_grid(grid_type *g_ptr);
-extern bool is_glyph_grid(grid_type *g_ptr);
-extern bool is_explosive_rune_grid(grid_type *g_ptr);
+
 extern void mmove2(POSITION *y, POSITION *x, POSITION y1, POSITION x1, POSITION y2, POSITION x2);
 extern bool projectable(POSITION y1, POSITION x1, POSITION y2, POSITION x2);
 extern void scatter(POSITION *yp, POSITION *xp, POSITION y, POSITION x, POSITION d, BIT_FLAGS mode);
index ba36e81..f1d2687 100644 (file)
@@ -1,4 +1,5 @@
 #include "angband.h"
+#include "grid.h"
 
 void day_break()
 {
index d093338..468c113 100644 (file)
@@ -285,3 +285,6 @@ extern void place_bound_perm_wall(grid_type *g_ptr);
 
 extern bool is_known_trap(grid_type *g_ptr);
 extern bool is_hidden_door(grid_type *g_ptr);
+extern bool is_mirror_grid(grid_type *g_ptr);
+extern bool is_glyph_grid(grid_type *g_ptr);
+extern bool is_explosive_rune_grid(grid_type *g_ptr);
\ No newline at end of file
index c667b8c..17bd36c 100644 (file)
@@ -23,6 +23,7 @@
 #include "player-status.h"
 #include "realm-hex.h"
 #include "object-hook.h"
+#include "grid.h"
 
 
 
index 1e3e63a..a8f43d0 100644 (file)
@@ -24,6 +24,7 @@
 #include "cmd-spell.h"
 #include "spells-floor.h"
 #include "feature.h"
+#include "grid.h"
 
 /*! 特殊技能の一覧テーブル */
 mind_power const mind_powers[5] =
index 9583bc5..1c76598 100644 (file)
@@ -24,6 +24,7 @@
 #include "realm-hex.h"
 #include "object-hook.h"
 #include "feature.h"
+#include "grid.h"
 
 
 /*!
index 7630bc4..69e4071 100644 (file)
@@ -18,6 +18,7 @@
 #include "monster.h"
 #include "spells-summon.h"
 #include "quest.h"
+#include "grid.h"
 
 #define HORDE_NOGOOD 0x01 /*!< (未実装フラグ)HORDE生成でGOODなモンスターの生成を禁止する? */
 #define HORDE_NOEVIL 0x02 /*!< (未実装フラグ)HORDE生成でEVILなモンスターの生成を禁止する? */
index 118ba64..1b44c65 100644 (file)
@@ -15,6 +15,7 @@
 #include "monster.h"
 #include "realm-hex.h"
 #include "player-status.h"
+#include "grid.h"
 
 /*!
  * @brief 地形生成確率を決める要素100の配列を確率テーブルから作成する