OSDN Git Service

[Refactor] #40477 Separated game-play-options.c/h
authorHourier <hourier@users.sourceforge.jp>
Sat, 13 Jun 2020 05:50:45 +0000 (14:50 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 13 Jun 2020 05:50:45 +0000 (14:50 +0900)
19 files changed:
Hengband/Hengband/Hengband.vcxproj
Hengband/Hengband/Hengband.vcxproj.filters
src/Makefile.am
src/cmd-io/cmd-gameoption.c
src/cmd-io/cmd-gameoption.h
src/cmd-io/cmd-lore.c
src/cmd/cmd-basic.c
src/core/scores.c
src/floor/floor-generate.c
src/game-option/game-play-options.c [new file with mode: 0644]
src/game-option/game-play-options.h [new file with mode: 0644]
src/grid/grid.c
src/io-dump/character-dump.c
src/io/input-key-processor.c
src/io/targeting.c
src/market/building-monster.c
src/object/object-stack.c
src/player/player-damage.c
src/store/store.c

index 043b65e..e5a9234 100644 (file)
     <ClCompile Include="..\..\src\cmd-io\cmd-menu-content-table.c" />\r
     <ClCompile Include="..\..\src\core\visuals-reseter.c" />\r
     <ClCompile Include="..\..\src\floor\fixed-map-generator.c" />\r
+    <ClCompile Include="..\..\src\game-option\game-play-options.c" />\r
     <ClCompile Include="..\..\src\game-option\input-options.c" />\r
     <ClCompile Include="..\..\src\game-option\map-screen-options.c" />\r
     <ClCompile Include="..\..\src\game-option\text-display-options.c" />\r
     <ClInclude Include="..\..\src\cmd-io\cmd-menu-content-table.h" />\r
     <ClInclude Include="..\..\src\core\visuals-reseter.h" />\r
     <ClInclude Include="..\..\src\floor\fixed-map-generator.h" />\r
+    <ClInclude Include="..\..\src\game-option\game-play-options.h" />\r
     <ClInclude Include="..\..\src\game-option\input-options.h" />\r
     <ClInclude Include="..\..\src\game-option\map-screen-options.h" />\r
     <ClInclude Include="..\..\src\game-option\text-display-options.h" />\r
index 449e883..7bbc575 100644 (file)
     <ClCompile Include="..\..\src\game-option\text-display-options.c">
       <Filter>game-option</Filter>
     </ClCompile>
+    <ClCompile Include="..\..\src\game-option\game-play-options.c">
+      <Filter>game-option</Filter>
+    </ClCompile>
   </ItemGroup>
   <ItemGroup>
     <ClInclude Include="..\..\src\cmd\cmd-basic.h">
     <ClInclude Include="..\..\src\game-option\text-display-options.h">
       <Filter>game-option</Filter>
     </ClInclude>
+    <ClInclude Include="..\..\src\game-option\game-play-options.h">
+      <Filter>game-option</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <None Include="..\..\src\wall.bmp" />
index aa09a5d..963eef3 100644 (file)
@@ -158,6 +158,7 @@ hengband_SOURCES = \
        floor/pattern-walk.c floor/pattern-walk.h \
        floor/wild.h floor/wild.c \
        \
+       game-option/game-play-options.c game-option/game-play-options.h \
        game-option/input-options.c game-option/input-options.h \
        game-option/map-screen-options.c game-option/map-screen-options.h \
        game-option/text-display-options.c game-option/text-display-options.h \
index 85a40ba..1881e0f 100644 (file)
@@ -3,6 +3,7 @@
 #include "cmd-io/cmd-autopick.h"
 #include "cmd-io/cmd-dump.h"
 #include "core/show-file.h"
+#include "game-option/game-play-options.h"
 #include "game-option/input-options.h"
 #include "game-option/map-screen-options.h"
 #include "game-option/text-display-options.h"
  * Software options (set via the '=' command).
  */
 
-                                       /*** Game-Play Options ***/
-
-bool stack_force_notes;        /* Merge inscriptions when stacking */
-bool stack_force_costs;        /* Merge discounts when stacking */
-bool expand_list;      /* Expand the power of the list commands */
-bool small_levels;     /* Allow unusually small dungeon levels */
-bool always_small_levels;      /* Always create unusually small dungeon levels */
-bool empty_levels;     /* Allow empty 'arena' levels */
-bool bound_walls_perm; /* Boundary walls become 'permanent wall' */
-bool last_words;       /* Leave last words when your character dies */
-
-#ifdef WORLD_SCORE
-bool send_score;       /* Send score dump to the world score server */
-#endif
-
-bool allow_debug_opts; /* Allow use of debug/cheat options */
-
-
                                                /*** Disturbance Options ***/
 
 bool find_ignore_stairs;       /* Run past stairs */
index fdc7016..04f1677 100644 (file)
@@ -7,24 +7,6 @@
  */
 #define CHEAT_MAX 10
 
-                                                               /*** Game-Play Options ***/
-
-extern bool stack_force_notes; /* Merge inscriptions when stacking */
-extern bool stack_force_costs; /* Merge discounts when stacking */
-extern bool expand_list;       /* Expand the power of the list commands */
-extern bool small_levels;      /* Allow unusually small dungeon levels */
-extern bool always_small_levels;       /* Always create unusually small dungeon levels */
-extern bool empty_levels;      /* Allow empty 'arena' levels */
-extern bool bound_walls_perm;  /* Boundary walls become 'permanent wall' */
-extern bool last_words;        /* Leave last words when your character dies */
-
-#ifdef WORLD_SCORE
-extern bool send_score;        /* Send score dump to the world score server */
-#endif
-
-extern bool allow_debug_opts;  /* Allow use of debug/cheat options */
-
-
                                                                /*** Disturbance Options ***/
 
 extern bool find_ignore_stairs;        /* Run past stairs */
index ce10f06..a06e6f7 100644 (file)
@@ -1,6 +1,7 @@
 #include "cmd-io/cmd-lore.h"
 #include "core/sort.h"
 #include "core/stuff-handler.h"
+#include "game-option/game-play-options.h"
 #include "monster-race/race-flags1.h"
 #include "monster-race/race-flags7.h"
 #include "term/gameterm.h"
index 8c83be1..3748b20 100644 (file)
@@ -26,6 +26,7 @@
 #include "floor/floor-object.h"
 #include "floor/geometry.h"
 #include "floor/wild.h"
+#include "game-option/game-play-options.h"
 #include "game-option/input-options.h"
 #include "grid/grid.h"
 #include "grid/trap.h"
index b4d09b4..401804f 100644 (file)
@@ -15,6 +15,7 @@
 #include "core/turn-compensator.h"
 #include "dungeon/dungeon.h"
 #include "floor/floor.h"
+#include "game-option/game-play-options.h"
 #include "io/report.h"
 #include "io/signal-handlers.h"
 #include "io/uid-checker.h"
index a5f040d..ce42424 100644 (file)
@@ -21,6 +21,7 @@
 #include "floor/floor-streams.h"
 #include "floor/floor.h"
 #include "floor/wild.h"
+#include "game-option/game-play-options.h"
 #include "grid/feature.h"
 #include "grid/grid.h"
 #include "grid/trap.h"
diff --git a/src/game-option/game-play-options.c b/src/game-option/game-play-options.c
new file mode 100644 (file)
index 0000000..b6c2981
--- /dev/null
@@ -0,0 +1,14 @@
+#include "game-option/game-play-options.h"
+
+bool stack_force_notes; /* Merge inscriptions when stacking */
+bool stack_force_costs; /* Merge discounts when stacking */
+bool expand_list; /* Expand the power of the list commands */
+bool small_levels; /* Allow unusually small dungeon levels */
+bool always_small_levels; /* Always create unusually small dungeon levels */
+bool empty_levels; /* Allow empty 'arena' levels */
+bool bound_walls_perm; /* Boundary walls become 'permanent wall' */
+bool last_words; /* Leave last words when your character dies */
+#ifdef WORLD_SCORE
+bool send_score; /* Send score dump to the world score server */
+#endif
+bool allow_debug_opts; /* Allow use of debug/cheat options */
diff --git a/src/game-option/game-play-options.h b/src/game-option/game-play-options.h
new file mode 100644 (file)
index 0000000..7f993ac
--- /dev/null
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "system/angband.h"
+
+extern bool stack_force_notes; /* Merge inscriptions when stacking */
+extern bool stack_force_costs; /* Merge discounts when stacking */
+extern bool expand_list; /* Expand the power of the list commands */
+extern bool small_levels; /* Allow unusually small dungeon levels */
+extern bool always_small_levels; /* Always create unusually small dungeon levels */
+extern bool empty_levels; /* Allow empty 'arena' levels */
+extern bool bound_walls_perm; /* Boundary walls become 'permanent wall' */
+extern bool last_words; /* Leave last words when your character dies */
+#ifdef WORLD_SCORE
+extern bool send_score; /* Send score dump to the world score server */
+#endif
+extern bool allow_debug_opts; /* Allow use of debug/cheat options */
index 23c8f09..be116d5 100644 (file)
@@ -20,6 +20,7 @@
 #include "dungeon/quest.h"
 #include "effect/effect-characteristics.h"
 #include "floor/floor-generate.h"
+#include "game-option/game-play-options.h"
 #include "game-option/map-screen-options.h"
 #include "grid/feature.h"
 #include "grid/trap.h"
index 3d82896..30bb5dd 100644 (file)
@@ -5,6 +5,7 @@
 #include "dungeon/quest.h"
 #include "floor/floor-town.h"
 #include "floor/floor.h"
+#include "game-option/game-play-options.h"
 #include "io-dump/player-status-dump.h"
 #include "io-dump/special-class-dump.h"
 #include "io/mutations-dump.h"
index 3157a7e..95f9804 100644 (file)
@@ -38,6 +38,7 @@
 #include "dungeon/dungeon.h"
 #include "dungeon/quest.h" // do_cmd_quest() がある。後で移設する.
 #include "floor/wild.h"
+#include "game-option/game-play-options.h"
 #include "game-option/input-options.h"
 #include "inventory/player-inventory.h"
 #include "io/chuukei.h"
index 8570f7f..d1db590 100644 (file)
@@ -22,6 +22,7 @@
 #include "floor/floor-object.h"
 #include "floor/floor-town.h"
 #include "floor/floor.h"
+#include "game-option/game-play-options.h"
 #include "game-option/input-options.h"
 #include "game-option/map-screen-options.h"
 #include "grid/feature.h"
index 4e4a188..8554f5a 100644 (file)
@@ -1,6 +1,7 @@
 #include "market/building-monster.h"
 #include "core/sort.h"
 #include "core/stuff-handler.h"
+#include "game-option/game-play-options.h"
 #include "monster-race/race-flags1.h"
 #include "lore/lore-store.h"
 #include "term/gameterm.h"
index 48756f2..eeec439 100644 (file)
@@ -5,14 +5,15 @@
  */
 
 #include "object/object-stack.h"
-#include "sv-definition/sv-other-types.h"
-#include "perception/object-perception.h"
+#include "game-option/game-play-options.h"
 #include "object-enchant/object-ego.h"
+#include "object-enchant/special-object-flags.h"
+#include "object-enchant/trc-types.h"
 #include "object/object-hook.h"
 #include "object/object-kind.h"
 #include "object/object-value.h"
-#include "object-enchant/special-object-flags.h"
-#include "object-enchant/trc-types.h"
+#include "perception/object-perception.h"
+#include "sv-definition/sv-other-types.h"
 
 /*!
  * @brief 魔法棒やロッドのスロット分割時に使用回数を分配する /
index ffbfc9b..dca781c 100644 (file)
@@ -6,6 +6,7 @@
 #include "dungeon/quest.h"
 #include "floor/floor.h"
 #include "floor/wild.h"
+#include "game-option/game-play-options.h"
 #include "game-option/input-options.h"
 #include "inventory/inventory-damage.h"
 #include "io/files-util.h"
index 91b63ab..96a35c8 100644 (file)
@@ -34,6 +34,7 @@
 #include "floor/floor-town.h"
 #include "floor/floor.h"
 #include "floor/wild.h"
+#include "game-option/game-play-options.h"
 #include "game-option/input-options.h"
 #include "game-option/text-display-options.h"
 #include "inventory/inventory-object.h"