OSDN Git Service

[Refactor] #37353 複数の is_bound* マクロを floor.h へ移動。
authordeskull <deskull@users.sourceforge.jp>
Wed, 10 Apr 2019 11:21:33 +0000 (20:21 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Wed, 10 Apr 2019 11:21:33 +0000 (20:21 +0900)
23 files changed:
src/defines.h
src/floor-generate.c
src/floor-save.c
src/floor-streams.c
src/floor.h
src/geometry.c
src/grid.c
src/mind.c
src/monster-process.c
src/monster1.c
src/monster2.c
src/mspells1.c
src/mutation.c
src/object1.c
src/object2.c
src/player-move.c
src/rooms-vault.c
src/rooms.c
src/shoot.c
src/spells1.c
src/spells2.c
src/warning.c
src/xtra2.c

index 2ad1ac8..800bc01 100644 (file)
        ((int)((G) % 256U))
 
 
-/*
- * Determines if a map location is fully inside the outer walls
- */
-#define in_bounds(Y,X) \
-   (((Y) > 0) && ((X) > 0) && ((Y) < current_floor_ptr->height-1) && ((X) < current_floor_ptr->width-1))
-
-/*
- * Determines if a map location is on or inside the outer walls
- */
-#define in_bounds2(Y,X) \
-   (((Y) >= 0) && ((X) >= 0) && ((Y) < current_floor_ptr->height) && ((X) < current_floor_ptr->width))
-
-/*
- * Determines if a map location is on or inside the outer walls
- * (unsigned version)
- */
-#define in_bounds2u(Y,X) \
-   (((Y) < current_floor_ptr->height) && ((X) < current_floor_ptr->width))
 
 /*
  * Determines if a map location is currently "on screen" -RAK-
index be76c6c..575155b 100644 (file)
 #include "generate.h"
 #include "grid.h"
 #include "rooms.h"
+#include "floor.h"
 #include "floor-streams.h"
 #include "floor-generate.h"
 #include "trap.h"
index 0f124ad..1deedf3 100644 (file)
@@ -19,7 +19,7 @@
 #include "wild.h"
 #include "spells-floor.h"
 #include "monster-status.h"
-
+#include "object-hook.h"
 
 static FLOOR_IDX new_floor_id;  /*!<次のフロアのID / floor_id of the destination */
 static u32b change_floor_mode;  /*!<フロア移行処理に関するフラグ / Mode flags for changing floor */
index b2364c8..d35f0d9 100644 (file)
 
 #include "angband.h"
 #include "generate.h"
+#include "floor.h"
 #include "floor-streams.h"
 #include "grid.h"
 #include "monster.h"
 #include "feature.h"
+#include "object-hook.h"
 
 
 /*!
index 7c6c88f..bad17ca 100644 (file)
 #define CFM_NO_RETURN    0x0100  /* Flee from random quest etc... */
 #define CFM_FIRST_FLOOR  0x0200  /* Create exit from the dungeon */
 
+ /*
+  * Determines if a map location is fully inside the outer walls
+  */
+#define in_bounds(Y,X) \
+   (((Y) > 0) && ((X) > 0) && ((Y) < current_floor_ptr->height-1) && ((X) < current_floor_ptr->width-1))
+
+  /*
+   * Determines if a map location is on or inside the outer walls
+   */
+#define in_bounds2(Y,X) \
+   (((Y) >= 0) && ((X) >= 0) && ((Y) < current_floor_ptr->height) && ((X) < current_floor_ptr->width))
+
+   /*
+       * Determines if a map location is on or inside the outer walls
+       * (unsigned version)
+       */
+#define in_bounds2u(Y,X) \
+   (((Y) < current_floor_ptr->height) && ((X) < current_floor_ptr->width))
+
index 58ecc72..d4cdd5e 100644 (file)
@@ -1,4 +1,5 @@
 #include "angband.h"
+#include "floor.h"
 
 /*!
  * @brief プレイヤーから指定の座標がどの方角にあるかを返す /
index 0b28e95..14f2173 100644 (file)
@@ -18,6 +18,7 @@
 
 
 #include "angband.h"
+#include "floor.h"
 #include "world.h"
 #include "object-hook.h"
 #include "generate.h"
index 4447c94..8718464 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #include "angband.h"
+#include "floor.h"
 #include "melee.h"
 #include "spells-summon.h"
 #include "avatar.h"
index 353a2b5..708d911 100644 (file)
@@ -27,6 +27,7 @@
 #include "player-move.h"
 #include "monster-status.h"
 #include "monster-spell.h"
+#include "floor.h"
 
 
 /*!
index eb4333a..a45db4e 100644 (file)
 
 #include "angband.h"
 #include "cmd-pet.h"
-#include "monsterrace-hook.h"
+#include "floor.h"
 #include "objectkind-hook.h"
 #include "monster.h"
 #include "monster-spell.h"
+#include "monsterrace-hook.h"
 #include "spells-summon.h"
 #include "patron.h"
 #include "quest.h"
index 37854d3..126ee24 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "angband.h"
 #include "cmd-pet.h"
+#include "floor.h"
 #include "monsterrace-hook.h"
 #include "monster-status.h"
 #include "monster.h"
index b716b85..caf160e 100644 (file)
@@ -39,6 +39,7 @@
  */
 
 #include "angband.h"
+#include "floor.h"
 #include "object-curse.h"
 #include "quest.h"
 #include "realm-hex.h"
index 6523987..f838cd0 100644 (file)
@@ -19,6 +19,7 @@
 #include "avatar.h"
 #include "player-status.h"
 #include "spells-status.h"
+#include "object-hook.h"
 
 /*!
  * @brief プレイヤーに突然変異を与える
index a3e5001..20d0dbf 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "angband.h"
 #include "artifact.h"
+#include "floor.h"
 #include "cmd-activate.h"
 #include "object-hook.h"
 #include "player-move.h"
index 4c1672c..9fd5d98 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include "angband.h"
+#include "floor.h"
 #include "object-boost.h"
 #include "object-hook.h"
 #include "object-curse.h"
index b5c7087..e977e14 100644 (file)
  */
 
 #include "angband.h"
+#include "floor.h"
 #include "melee.h"
 #include "grid.h"
 #include "trap.h"
index 8243b68..db5357b 100644 (file)
@@ -6,6 +6,7 @@
 #include "trap.h"
 #include "monster.h"
 #include "feature.h"
+#include "floor.h"
 
 /*
 * This function creates a random vault that looks like a collection of bubbles.
index bd5abfa..47e17cd 100644 (file)
@@ -37,6 +37,7 @@
  */
 
 #include "angband.h"
+#include "floor.h"
 #include "generate.h"
 #include "grid.h"
 #include "rooms.h"
index 13f7f39..d49d761 100644 (file)
@@ -5,6 +5,8 @@
 #include "artifact.h"
 #include "avatar.h"
 #include "player-status.h"
+#include "object-hook.h"
+#include "floor.h"
 
 #include "shoot.h"
 
index 8e906c3..f51af07 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "angband.h"
 #include "cmd-pet.h"
+#include "floor.h"
 #include "trap.h"
 #include "object-curse.h"
 #include "player-damage.h"
index db281fb..dd7b891 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "angband.h"
 #include "cmd-pet.h"
+#include "floor.h"
 #include "grid.h"
 #include "trap.h"
 #include "monsterrace-hook.h"
index f1c111f..cd1e986 100644 (file)
@@ -4,6 +4,7 @@
 #include "artifact.h"
 #include "player-move.h"
 #include "feature.h"
+#include "floor.h"
 #include "warning.h"
 #include "player-status.h"
 #include "monster.h"
index 4b04366..56a9bd4 100644 (file)
@@ -19,6 +19,7 @@
 #include "objectkind-hook.h"
 #include "sort.h"
 #include "spells-summon.h"
+#include "floor.h"
 #include "floor-events.h"
 #include "player-move.h"
 #include "monster-status.h"