OSDN Git Service

[Refactor] #40569 Separated sight-definitions.h from floor.h
authorHourier <hourier@users.sourceforge.jp>
Sat, 18 Jul 2020 01:36:05 +0000 (10:36 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 18 Jul 2020 01:36:05 +0000 (10:36 +0900)
Hengband/Hengband/Hengband.vcxproj
Hengband/Hengband/Hengband.vcxproj.filters
src/Makefile.am
src/floor/floor-save.h
src/floor/floor.h
src/floor/sight-definitions.h [new file with mode: 0644]

index 65cb860..ceff4b9 100644 (file)
     <ClInclude Include="..\..\src\floor\floor-base-definitions.h" />\r
     <ClInclude Include="..\..\src\floor\floor-util.h" />\r
     <ClInclude Include="..\..\src\floor\object-scanner.h" />\r
+    <ClInclude Include="..\..\src\floor\sight-definitions.h" />\r
     <ClInclude Include="..\..\src\game-option\auto-destruction-options.h" />\r
     <ClInclude Include="..\..\src\game-option\birth-options.h" />\r
     <ClInclude Include="..\..\src\game-option\cheat-options.h" />\r
index 7409694..fb1045e 100644 (file)
     <ClInclude Include="..\..\src\floor\floor-base-definitions.h">
       <Filter>floor</Filter>
     </ClInclude>
+    <ClInclude Include="..\..\src\floor\sight-definitions.h">
+      <Filter>floor</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <None Include="..\..\src\wall.bmp" />
index 4eac471..658d73f 100644 (file)
@@ -201,6 +201,7 @@ hengband_SOURCES = \
        floor/geometry.c floor/geometry.h \
        floor/object-scanner.c floor/object-scanner.h \
        floor/pattern-walk.c floor/pattern-walk.h \
+       floor/sight-definitions.h \
        floor/wild.h floor/wild.c \
        \
        game-option/auto-destruction-options.c game-option/auto-destruction-options.h \
index 489523b..e55c039 100644 (file)
@@ -21,8 +21,7 @@
 /*
  *  A structure type for the saved floor
  */
-typedef struct
-{
+typedef struct saved_floor_type {
        FLOOR_IDX floor_id;        /* No recycle until 65536 IDs are all used */
        s16b savefile_id;     /* ID for savefile (from 0 to MAX_SAVED_FLOOR) */
        DEPTH dun_level;
index db416e3..d791129 100644 (file)
@@ -1,40 +1,11 @@
 #pragma once
 
-#include "floor-base-definitions.h"
+#include "floor/floor-base-definitions.h"
+#include "floor/sight-definitions.h"
 #include "monster/monster-timed-effect-types.h"
 #include "system/angband.h"
 #include "floor/floor-save.h"
 
-/*!
- * @brief プレイヤー用光源処理配列サイズ / Maximum size of the "lite" array (see "grid.c")
- * @details Note that the "lite radius" will NEVER exceed 14, and we would
- * never require more than 581 entries in the array for circular "lite".
- */
-#define LITE_MAX 600
-
-/*!
- * @brief モンスター用光源処理配列サイズ / Maximum size of the "mon_lite" array (see ">grid.c")
- * @details Note that the "view radius" will NEVER exceed 20, monster illumination
- * flags are dependent on CAVE_VIEW, and even if the "view" was octagonal,
- * we would never require more than 1520 entries in the array.
- */
-#define MON_LITE_MAX 1536
-
-/*!
- * @brief 視界処理配列サイズ / Maximum size of the "view" array
- * @details Note that the "view radius" will NEVER exceed 20, and even if the "view"
- * was octagonal, we would never require more than 1520 entries in the array.
- */
-#define VIEW_MAX 1536
-
-/*!
- * @brief 再描画処理用配列サイズ / Maximum size of the "redraw" array
- * @details We must be large for proper functioning of delayed redrawing.
- * We must also be as large as two times of the largest view area.
- * Note that maximum view grids are 1149 entries.
- */
-#define REDRAW_MAX 2298
-
 typedef struct grid_type grid_type;
 typedef struct object_type object_type;
 typedef struct monster_type monster_type;
diff --git a/src/floor/sight-definitions.h b/src/floor/sight-definitions.h
new file mode 100644 (file)
index 0000000..f30a31d
--- /dev/null
@@ -0,0 +1,31 @@
+#pragma once
+
+/*!
+ * @brief プレイヤー用光源処理配列サイズ / Maximum size of the "lite" array (see "grid.c")
+ * @details Note that the "lite radius" will NEVER exceed 14, and we would
+ * never require more than 581 entries in the array for circular "lite".
+ */
+#define LITE_MAX 600
+
+/*!
+ * @brief モンスター用光源処理配列サイズ / Maximum size of the "mon_lite" array (see ">grid.c")
+ * @details Note that the "view radius" will NEVER exceed 20, monster illumination
+ * flags are dependent on CAVE_VIEW, and even if the "view" was octagonal,
+ * we would never require more than 1520 entries in the array.
+ */
+#define MON_LITE_MAX 1536
+
+/*!
+ * @brief 視界処理配列サイズ / Maximum size of the "view" array
+ * @details Note that the "view radius" will NEVER exceed 20, and even if the "view"
+ * was octagonal, we would never require more than 1520 entries in the array.
+ */
+#define VIEW_MAX 1536
+
+/*!
+ * @brief 再描画処理用配列サイズ / Maximum size of the "redraw" array
+ * @details We must be large for proper functioning of delayed redrawing.
+ * We must also be as large as two times of the largest view area.
+ * Note that maximum view grids are 1149 entries.
+ */
+#define REDRAW_MAX 2298