• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision65a18ffd0752bd34e81a351c3da684b1d2cddacb (tree)
Time2019-02-23 00:07:07
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 is_*_grid()の宣言をいくつか を grid.h に移動。 / Move some declarations, is_*_grid() to grid.h.

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -499,9 +499,7 @@ extern FEAT_IDX conv_dungeon_feat(FEAT_IDX newfeat);
499499 extern FEAT_IDX feat_state(FEAT_IDX feat, int action);
500500 extern void cave_alter_feat(POSITION y, POSITION x, int action);
501501 extern void remove_mirror(POSITION y, POSITION x);
502-extern bool is_mirror_grid(grid_type *g_ptr);
503-extern bool is_glyph_grid(grid_type *g_ptr);
504-extern bool is_explosive_rune_grid(grid_type *g_ptr);
502+
505503 extern void mmove2(POSITION *y, POSITION *x, POSITION y1, POSITION x1, POSITION y2, POSITION x2);
506504 extern bool projectable(POSITION y1, POSITION x1, POSITION y2, POSITION x2);
507505 extern void scatter(POSITION *yp, POSITION *xp, POSITION y, POSITION x, POSITION d, BIT_FLAGS mode);
--- a/src/floor-events.c
+++ b/src/floor-events.c
@@ -1,4 +1,5 @@
11 #include "angband.h"
2+#include "grid.h"
23
34 void day_break()
45 {
--- a/src/grid.h
+++ b/src/grid.h
@@ -285,3 +285,6 @@ extern void place_bound_perm_wall(grid_type *g_ptr);
285285
286286 extern bool is_known_trap(grid_type *g_ptr);
287287 extern bool is_hidden_door(grid_type *g_ptr);
288+extern bool is_mirror_grid(grid_type *g_ptr);
289+extern bool is_glyph_grid(grid_type *g_ptr);
290+extern bool is_explosive_rune_grid(grid_type *g_ptr);
\ No newline at end of file
--- a/src/melee1.c
+++ b/src/melee1.c
@@ -23,6 +23,7 @@
2323 #include "player-status.h"
2424 #include "realm-hex.h"
2525 #include "object-hook.h"
26+#include "grid.h"
2627
2728
2829
--- a/src/mind.c
+++ b/src/mind.c
@@ -24,6 +24,7 @@
2424 #include "cmd-spell.h"
2525 #include "spells-floor.h"
2626 #include "feature.h"
27+#include "grid.h"
2728
2829 /*! 特殊技能の一覧テーブル */
2930 mind_power const mind_powers[5] =
--- a/src/monster-process.c
+++ b/src/monster-process.c
@@ -24,6 +24,7 @@
2424 #include "realm-hex.h"
2525 #include "object-hook.h"
2626 #include "feature.h"
27+#include "grid.h"
2728
2829
2930 /*!
--- a/src/monster2.c
+++ b/src/monster2.c
@@ -18,6 +18,7 @@
1818 #include "monster.h"
1919 #include "spells-summon.h"
2020 #include "quest.h"
21+#include "grid.h"
2122
2223 #define HORDE_NOGOOD 0x01 /*!< (未実装フラグ)HORDE生成でGOODなモンスターの生成を禁止する? */
2324 #define HORDE_NOEVIL 0x02 /*!< (未実装フラグ)HORDE生成でEVILなモンスターの生成を禁止する? */
--- a/src/wild.c
+++ b/src/wild.c
@@ -15,6 +15,7 @@
1515 #include "monster.h"
1616 #include "realm-hex.h"
1717 #include "player-status.h"
18+#include "grid.h"
1819
1920 /*!
2021 * @brief 地形生成確率を決める要素100の配列を確率テーブルから作成する
Show on old repository browser