OSDN Git Service

[Refactor] #40014 Separated place-monster-types.h from monster.h
authorHourier <hourier@users.sourceforge.jp>
Sun, 7 Jun 2020 13:00:25 +0000 (22:00 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sun, 7 Jun 2020 13:00:25 +0000 (22:00 +0900)
49 files changed:
Hengband/Hengband/Hengband.vcxproj
Hengband/Hengband/Hengband.vcxproj.filters
src/Makefile.am
src/cmd-action/cmd-mane.c
src/cmd-item/cmd-activate.c
src/cmd-item/cmd-read.c
src/cmd-item/cmd-usestaff.c
src/cmd/cmd-basic.c
src/core/game-play.c
src/core/player-processor.c
src/effect/effect-item.c
src/floor/fixed-map-generator.c
src/floor/floor-generate.c
src/floor/floor.c
src/floor/wild.c
src/grid/trap.c
src/inventory/inventory-curse.c
src/mind/mind.c
src/monster/monster-process.c
src/monster/monster-status.c
src/monster/monster.h
src/monster/monster1.c
src/monster/monster2.c
src/monster/place-monster-types.h [new file with mode: 0644]
src/mspell/mspell-summon.c
src/mspell/mspells3.c
src/mutation/mutation-processor.c
src/mutation/mutation.c
src/player/patron.c
src/realm/realm-arcane.c
src/realm/realm-craft.c
src/realm/realm-craft.h
src/realm/realm-crusade.c
src/realm/realm-daemon.c
src/realm/realm-nature.c
src/realm/realm-trump.c
src/room/rooms-pit-nest.c
src/room/rooms-pit-nest.h
src/room/rooms-special.c
src/room/rooms-vault.c
src/room/rooms-vault.h
src/room/rooms.c
src/room/rooms.h
src/specific-object/chest.c
src/spell-kind/spells-random.c
src/spell-realm/spells-trump.c
src/spell/spells-summon.c
src/spell/spells3.c
src/wizard/wizard-special-process.c

index 270abef..f854d81 100644 (file)
     <ClInclude Include="..\..\src\mind\snipe-types.h" />\r
     <ClInclude Include="..\..\src\monster-race\race-indice-types.h" />\r
     <ClInclude Include="..\..\src\monster\monster-flag-types.h" />\r
+    <ClInclude Include="..\..\src\monster\place-monster-types.h" />\r
     <ClInclude Include="..\..\src\monster\smart-learn-types.h" />\r
     <ClInclude Include="..\..\src\object-enchant\activation-info-table.h" />\r
     <ClInclude Include="..\..\src\object-enchant\dragon-breaths-table.h" />\r
     <ClInclude Include="..\..\src\room\rooms-city.h" />\r
     <ClInclude Include="..\..\src\room\rooms-fractal.h" />\r
     <ClInclude Include="..\..\src\room\rooms-normal.h" />\r
-    <ClInclude Include="..\..\src\room\room\rooms-pit-nest.h" />\r
+    <ClInclude Include="..\..\src\room\rooms-pit-nest.h" />\r
     <ClInclude Include="..\..\src\room\rooms-special.h" />\r
     <ClInclude Include="..\..\src\room\rooms-trap.h" />\r
     <ClInclude Include="..\..\src\room\rooms-vault.h" />\r
index d8f79f0..c0578b3 100644 (file)
     <ClInclude Include="..\..\src\room\rooms-normal.h">
       <Filter>room</Filter>
     </ClInclude>
-    <ClInclude Include="..\..\src\room\room\rooms-pit-nest.h">
-      <Filter>room</Filter>
-    </ClInclude>
     <ClInclude Include="..\..\src\room\rooms-special.h">
       <Filter>room</Filter>
     </ClInclude>
     <ClInclude Include="..\..\src\monster\smart-learn-types.h">
       <Filter>monster</Filter>
     </ClInclude>
+    <ClInclude Include="..\..\src\monster\place-monster-types.h">
+      <Filter>monster</Filter>
+    </ClInclude>
+    <ClInclude Include="..\..\src\room\rooms-pit-nest.h">
+      <Filter>room</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <None Include="..\..\src\wall.bmp" />
index 88aa61c..b76df09 100644 (file)
@@ -289,6 +289,7 @@ hengband_SOURCES = \
        monster/monster-process.c monster/monster-process.h \
        monster/monster-runaway.c monster/monster-runaway.h \
        monster/monster-safety-hiding.c monster/monster-safety-hiding.h \
+       monster/place-monster-types.h \
        monster/smart-learn-types.h \
        monster/monster-status.c monster/monster-status.h \
        monster/monster-sweep-grid.c monster/monster-sweep-grid.h \
index 2215e8d..be6eaed 100644 (file)
@@ -19,6 +19,7 @@
 #include "main/sound-definitions-table.h"
 #include "monster/monster-process.h"
 #include "monster/monster-status.h"
+#include "monster/place-monster-types.h"
 #include "mspell/monster-spell.h"
 #include "mspell/mspell-type.h"
 #include "player/player-effects.h"
index 4a427a8..17a1075 100644 (file)
@@ -29,6 +29,7 @@
 #include "object/object-hook.h"
 #include "object/object-kind.h"
 #include "object/object-info.h"
+#include "monster/place-monster-types.h"
 #include "monster/smart-learn-types.h"
 #include "player/avatar.h"
 #include "player/player-damage.h"
index bc38f70..0fc6797 100644 (file)
 #include "inventory/player-inventory.h"
 #include "io/files-util.h"
 #include "main/sound-definitions-table.h"
+#include "monster/place-monster-types.h"
 #include "object/item-use-flags.h"
-#include "perception/object-perception.h"
 #include "object/object-flavor.h"
 #include "object/object-hook.h"
-#include "object/object-kind.h"
 #include "object/object-info.h"
-#include "sv-definition/sv-scroll-types.h"
+#include "object/object-kind.h"
+#include "perception/object-perception.h"
 #include "player/avatar.h"
 #include "player/player-class.h"
 #include "player/player-damage.h"
 #include "spell-kind/spells-floor.h"
 #include "spell-kind/spells-genocide.h"
 #include "spell-kind/spells-grid.h"
-#include "spell-realm/spells-hex.h"
 #include "spell-kind/spells-launcher.h"
 #include "spell-kind/spells-lite.h"
 #include "spell-kind/spells-neighbor.h"
-#include "spell/spells-object.h"
 #include "spell-kind/spells-sight.h"
+#include "spell-kind/spells-teleport.h"
+#include "spell-realm/spells-hex.h"
+#include "spell/spells-object.h"
 #include "spell/spells-status.h"
 #include "spell/spells-summon.h"
-#include "spell-kind/spells-teleport.h"
 #include "spell/spells-type.h"
 #include "spell/spells3.h"
 #include "store/rumor.h"
+#include "sv-definition/sv-scroll-types.h"
 #include "util/util.h"
 #include "view/display-main-window.h"
 
index 4b7fd25..c5bc7c5 100644 (file)
@@ -5,31 +5,32 @@
 #include "inventory/inventory-object.h"
 #include "inventory/player-inventory.h"
 #include "main/sound-definitions-table.h"
+#include "monster/place-monster-types.h"
+#include "object-enchant/special-object-flags.h"
 #include "object/item-use-flags.h"
-#include "perception/object-perception.h"
 #include "object/object-generator.h"
 #include "object/object-hook.h"
-#include "object/object-kind.h"
 #include "object/object-info.h"
-#include "object-enchant/special-object-flags.h"
-#include "sv-definition/sv-staff-types.h"
+#include "object/object-kind.h"
+#include "perception/object-perception.h"
 #include "player/avatar.h"
 #include "player/player-class.h"
 #include "player/player-effects.h"
 #include "player/player-races-table.h"
 #include "player/player-status.h"
+#include "spell-kind/earthquake.h"
 #include "spell-kind/spells-detection.h"
 #include "spell-kind/spells-floor.h"
 #include "spell-kind/spells-genocide.h"
 #include "spell-kind/spells-lite.h"
 #include "spell-kind/spells-neighbor.h"
 #include "spell-kind/spells-sight.h"
+#include "spell-kind/spells-teleport.h"
 #include "spell/spells-staff-only.h"
 #include "spell/spells-status.h"
 #include "spell/spells-summon.h"
-#include "spell-kind/earthquake.h"
-#include "spell-kind/spells-teleport.h"
 #include "spell/spells3.h"
+#include "sv-definition/sv-staff-types.h"
 #include "util/util.h"
 #include "view/display-main-window.h"
 #include "view/object-describer.h"
index cba4cca..0b8d91a 100644 (file)
@@ -38,6 +38,7 @@
 #include "main/sound-definitions-table.h"
 #include "mind/snipe-types.h"
 #include "monster/monster-status.h"
+#include "monster/place-monster-types.h"
 #include "monster/smart-learn-types.h"
 #include "object-enchant/special-object-flags.h"
 #include "object-enchant/tr-types.h"
index 5f5c335..7920307 100644 (file)
@@ -40,6 +40,7 @@
 #include "market/bounty.h"
 #include "monster-race/race-indice-types.h"
 #include "monster/creature.h"
+#include "monster/place-monster-types.h"
 #include "object/object-flavor.h"
 #include "player/player-class.h"
 #include "player/player-effects.h"
index df69a93..8d2f6a1 100644 (file)
@@ -10,6 +10,7 @@
 #include "monster-race/monster-race-hook.h"
 #include "monster/monster-flag-types.h"
 #include "monster/monster-status.h"
+#include "monster/place-monster-types.h"
 #include "mutation/mutation.h"
 #include "player/player-effects.h"
 #include "player/player-move.h"
index 761c336..bc3a7cb 100644 (file)
@@ -1,6 +1,7 @@
 #include "effect/effect-item.h"
 #include "autopick/autopick.h"
 #include "floor/floor-object.h"
+#include "monster/place-monster-types.h"
 #include "monster/smart-learn-types.h"
 #include "object-enchant/tr-types.h"
 #include "object/object-broken.h"
index 574905a..4fe073e 100644 (file)
@@ -8,6 +8,7 @@
 #include "info-reader/general-parser.h"
 #include "info-reader/random-grid-effect-types.h"
 #include "io/tokenizer.h"
+#include "monster/place-monster-types.h"
 #include "monster/smart-learn-types.h"
 #include "object-enchant/apply-magic.h"
 #include "object-enchant/artifact.h"
index ff8f12a..f5355c7 100644 (file)
@@ -31,6 +31,7 @@
 #include "monster/monster-flag-types.h"
 #include "monster/monster-status.h"
 #include "monster/monster.h"
+#include "monster/place-monster-types.h"
 #include "player/player-status.h"
 #include "room/rooms.h"
 #include "system/system-variables.h"
index b93ca39..482a285 100644 (file)
@@ -7,12 +7,13 @@
 #include "floor/floor-object.h"
 #include "grid/grid.h"
 #include "grid/trap.h"
+#include "monster/place-monster-types.h"
 #include "object-enchant/artifact.h"
-#include "perception/object-perception.h"
+#include "object-enchant/special-object-flags.h"
 #include "object/object-generator.h"
 #include "object/object-hook.h"
 #include "object/object-kind.h"
-#include "object-enchant/special-object-flags.h"
+#include "perception/object-perception.h"
 #include "player/player-effects.h"
 #include "room/rooms.h"
 #include "world/world-object.h"
index 8e56bdd..ad5a644 100644 (file)
@@ -23,6 +23,7 @@
 #include "main/init.h"
 #include "monster/monster-status.h"
 #include "monster/monster.h"
+#include "monster/place-monster-types.h"
 #include "monster/smart-learn-types.h"
 #include "player/player-effects.h"
 #include "player/player-status.h"
index 6d8a1b7..41dbd26 100644 (file)
@@ -14,6 +14,7 @@
 #include "io/write-diary.h"
 #include "main/sound-definitions-table.h"
 #include "mind/mind-mirror-master.h"
+#include "monster/place-monster-types.h"
 #include "player/player-class.h"
 #include "player/player-damage.h"
 #include "player/player-effects.h"
index aa55090..3a74c3b 100644 (file)
@@ -1,6 +1,7 @@
 #include "inventory/inventory-curse.h"
 #include "art-definition/art-accessory-types.h"
 #include "io/files-util.h"
+#include "monster/place-monster-types.h"
 #include "object-enchant/item-feeling.h"
 #include "object-enchant/object-curse.h"
 #include "object-enchant/special-object-flags.h"
index aac79f5..dc23b5e 100644 (file)
@@ -31,6 +31,7 @@
 #include "mind/mind-ninja.h"
 #include "mind/mind-warrior.h"
 #include "monster/monster-status.h"
+#include "monster/place-monster-types.h"
 #include "player/avatar.h"
 #include "player/player-class.h"
 #include "player/player-damage.h"
index 835bef9..ced6933 100644 (file)
@@ -28,6 +28,7 @@
 #include "monster/monster-status.h"
 #include "monster/monster-update.h"
 #include "monster/monster-util.h"
+#include "monster/place-monster-types.h"
 #include "monster/quantum-effect.h"
 #include "monster/smart-learn-types.h"
 #include "mspell/monster-spell.h"
index c2eb17d..e50ab14 100644 (file)
@@ -19,6 +19,7 @@
 #include "monster/monster-flag-types.h"
 #include "monster/monster-process.h"
 #include "monster/monster.h"
+#include "monster/place-monster-types.h"
 #include "monster/smart-learn-types.h"
 #include "mspell/monster-spell.h"
 #include "object-enchant/object-curse.h"
index a908e30..cf5d9ca 100644 (file)
@@ -71,22 +71,6 @@ typedef struct monster_type {
        MONSTER_IDX parent_m_idx;
 } monster_type;
 
-/*
- * Bit flags for the place_monster_???() (etc)
- */
-#define PM_ALLOW_SLEEP    0x00000001    /*!< モンスター生成フラグ: 眠っている状態で生成されても良い */
-#define PM_ALLOW_GROUP    0x00000002    /*!< モンスター生成フラグ: 集団生成されても良い */
-#define PM_FORCE_FRIENDLY 0x00000004    /*!< モンスター生成フラグ: 必ず友好的に生成される */
-#define PM_FORCE_PET      0x00000008    /*!< モンスター生成フラグ: 必ずペットとして生成される */
-#define PM_NO_KAGE        0x00000010    /*!< モンスター生成フラグ: 必ずあやしい影としては生成されない */
-#define PM_NO_PET         0x00000020    /*!< モンスター生成フラグ: 必ずペットとして生成されない */
-#define PM_ALLOW_UNIQUE   0x00000040    /*!< モンスター生成フラグ: ユニークの選択生成を許可する */
-#define PM_IGNORE_TERRAIN 0x00000080    /*!< モンスター生成フラグ: 侵入可能地形を考慮せずに生成する */
-#define PM_HASTE          0x00000100    /*!< モンスター生成フラグ: 加速状態で生成する */
-#define PM_KAGE           0x00000200    /*!< モンスター生成フラグ: 必ずあやしい影として生成する */
-#define PM_MULTIPLY       0x00000400    /*!< モンスター生成フラグ: 増殖処理時として生成する */
-#define PM_JURAL          0x00000800    /*!< モンスター生成フラグ: ジュラル星人として誤認生成する */
-
 extern bool place_monster_aux(player_type *player_ptr, MONSTER_IDX who, POSITION y, POSITION x, MONRACE_IDX r_idx, BIT_FLAGS mode);
 extern bool place_monster(player_type *player_ptr, POSITION y, POSITION x, BIT_FLAGS mode);
 extern bool alloc_horde(player_type *player_ptr, POSITION y, POSITION x);
index 6395492..5f6f60c 100644 (file)
@@ -35,6 +35,7 @@
 #include "monster-race/monster-race-hook.h"
 #include "monster/monster-flag-types.h"
 #include "monster/monster.h"
+#include "monster/place-monster-types.h"
 #include "monster/smart-learn-types.h"
 #include "mspell/monster-spell.h"
 #include "mspell/mspell-damage-calculator.h"
index be03993..f641ff3 100644 (file)
@@ -32,6 +32,7 @@
 #include "monster-race/monster-race.h"
 #include "monster/monster-flag-types.h"
 #include "monster/monster-status.h"
+#include "monster/place-monster-types.h"
 #include "monster/smart-learn-types.h"
 #include "mspell/monster-spell.h"
 #include "object/object-flavor.h"
diff --git a/src/monster/place-monster-types.h b/src/monster/place-monster-types.h
new file mode 100644 (file)
index 0000000..51ba8f5
--- /dev/null
@@ -0,0 +1,19 @@
+#pragma once
+
+/*
+ * Bit flags for the place_monster_???() (etc)
+ */
+typedef enum place_monster_type {
+       PM_ALLOW_SLEEP = 0x00000001, /*!< モンスター生成フラグ: 眠っている状態で生成されても良い */
+    PM_ALLOW_GROUP = 0x00000002, /*!< モンスター生成フラグ: 集団生成されても良い */
+    PM_FORCE_FRIENDLY = 0x00000004, /*!< モンスター生成フラグ: 必ず友好的に生成される */
+    PM_FORCE_PET = 0x00000008, /*!< モンスター生成フラグ: 必ずペットとして生成される */
+    PM_NO_KAGE = 0x00000010, /*!< モンスター生成フラグ: 必ずあやしい影としては生成されない */
+    PM_NO_PET = 0x00000020, /*!< モンスター生成フラグ: 必ずペットとして生成されない */
+    PM_ALLOW_UNIQUE = 0x00000040, /*!< モンスター生成フラグ: ユニークの選択生成を許可する */
+    PM_IGNORE_TERRAIN = 0x00000080, /*!< モンスター生成フラグ: 侵入可能地形を考慮せずに生成する */
+    PM_HASTE = 0x00000100, /*!< モンスター生成フラグ: 加速状態で生成する */
+    PM_KAGE = 0x00000200, /*!< モンスター生成フラグ: 必ずあやしい影として生成する */
+    PM_MULTIPLY = 0x00000400, /*!< モンスター生成フラグ: 増殖処理時として生成する */
+    PM_JURAL = 0x00000800, /*!< モンスター生成フラグ: ジュラル星人として誤認生成する */
+} place_monster_type;
index 60151a2..10222cc 100644 (file)
@@ -2,6 +2,7 @@
 #include "effect/effect-characteristics.h"
 #include "monster-race/race-indice-types.h"
 #include "monster/monster-status.h"
+#include "monster/place-monster-types.h"
 #include "monster/smart-learn-types.h"
 #include "mspell/monster-spell.h"
 #include "mspell/mspell-util.h"
index 8c3e217..9d0a286 100644 (file)
  */
 
 #include "system/angband.h"
+#include "cmd-action/cmd-spell.h"
+#include "cmd/cmd-basic.h"
 #include "core/stuff-handler.h"
-#include "util/util.h"
-#include "main/sound-definitions-table.h"
 #include "floor/floor.h"
 #include "grid/grid.h"
-#include "spell/spells-summon.h"
-#include "player/avatar.h"
-#include "spell/spells-status.h"
-#include "cmd-action/cmd-spell.h"
-#include "player/player-status.h"
-#include "mspell/monster-spell.h"
+#include "io/targeting.h"
+#include "main/sound-definitions-table.h"
 #include "monster/monster-status.h"
-#include "spell/spells-type.h"
-#include "cmd/cmd-basic.h"
+#include "monster/place-monster-types.h"
+#include "mspell/monster-spell.h"
+#include "mspell/mspell-damage-calculator.h"
+#include "mspell/mspell-type.h"
+#include "player/avatar.h"
 #include "player/player-effects.h"
-#include "io/targeting.h"
-#include "view/display-main-window.h"
+#include "player/player-status.h"
 #include "spell-kind/spells-launcher.h"
 #include "spell-kind/spells-lite.h"
 #include "spell-kind/spells-neighbor.h"
 #include "spell-kind/spells-sight.h"
 #include "spell-kind/spells-teleport.h"
+#include "spell/spells-status.h"
+#include "spell/spells-summon.h"
+#include "spell/spells-type.h"
 #include "spell/spells3.h"
-#include "mspell/mspell-type.h"
-#include "mspell/mspell-damage-calculator.h"
+#include "util/util.h"
+#include "view/display-main-window.h"
 
  /*!
   * @brief モンスター魔法をプレイヤーが使用する場合の換算レベル
index d929900..7f3fc02 100644 (file)
@@ -1,6 +1,7 @@
 #include "mutation/mutation-processor.h"
 #include "io/targeting.h"
 #include "monster/monster-status.h"
+#include "monster/place-monster-types.h"
 #include "mutation/mutation.h"
 #include "object/lite-processor.h"
 #include "object/object-hook.h"
index 9515093..a394c54 100644 (file)
@@ -24,6 +24,7 @@
 #include "mind/mind-warrior.h"
 #include "mind/racial-vampire.h"
 #include "monster/monster-flag-types.h"
+#include "monster/place-monster-types.h"
 #include "monster/smart-learn-types.h"
 #include "object-enchant/item-feeling.h"
 #include "object/object-hook.h"
index 1812a1b..5932341 100644 (file)
@@ -5,6 +5,7 @@
 #include "floor/floor.h"
 #include "io/write-diary.h"
 #include "monster-race/monster-race-hook.h"
+#include "monster/place-monster-types.h"
 #include "mutation/mutation.h"
 #include "object-enchant/object-curse.h"
 #include "object/object-flavor.h"
index b460c6b..2b28674 100644 (file)
@@ -1,6 +1,7 @@
 #include "realm/realm-arcane.h"
 #include "cmd-action/cmd-spell.h"
 #include "io/targeting.h"
+#include "monster/place-monster-types.h"
 #include "player/avatar.h"
 #include "player/player-effects.h"
 #include "player/player-status.h"
index a299df4..df79860 100644 (file)
@@ -1,17 +1,16 @@
-#include "system/angband.h"
-#include "util/util.h"
-
+#include "realm/realm-craft.h"
 #include "cmd-action/cmd-spell.h"
+#include "monster/place-monster-types.h"
+#include "mutation/mutation.h"
+#include "player/player-effects.h"
+#include "player/player-status.h"
 #include "player/selfinfo.h"
 #include "spell/range-calc.h"
 #include "spell/spells-object.h"
-#include "spell/spells-summon.h"
 #include "spell/spells-status.h"
-#include "mutation/mutation.h"
-#include "player/player-status.h"
-#include "player/player-effects.h"
-#include "realm/realm-craft.h"
+#include "spell/spells-summon.h"
 #include "spell/spells3.h"
+#include "util/util.h"
 
 /*!
 * @brief 匠領域魔法の各処理を行う
index d99c834..5820a57 100644 (file)
@@ -1,5 +1,6 @@
 #pragma once
 
+#include "system/angband.h"
 #include "spell/spells-util.h"
 
 concptr do_craft_spell(player_type *caster_ptr, SPELL_IDX spell, spell_type mode);
index 1ab8dcb..c3a993d 100644 (file)
@@ -3,6 +3,7 @@
 #include "effect/effect-characteristics.h"
 #include "floor/floor.h"
 #include "io/targeting.h"
+#include "monster/place-monster-types.h"
 #include "player/player-class.h"
 #include "player/player-effects.h"
 #include "spell/process-effect.h"
index 108becd..259e2c5 100644 (file)
@@ -1,6 +1,7 @@
 #include "realm/realm-daemon.h"
 #include "cmd-action/cmd-spell.h"
 #include "io/targeting.h"
+#include "monster/place-monster-types.h"
 #include "player/player-class.h"
 #include "player/player-damage.h"
 #include "player/player-effects.h"
index aac7ceb..112b9ae 100644 (file)
@@ -4,6 +4,7 @@
 #include "effect/spells-effect-util.h"
 #include "floor/floor-object.h"
 #include "io/targeting.h"
+#include "monster/place-monster-types.h"
 #include "object/object-generator.h"
 #include "object/object-kind-hook.h"
 #include "player/avatar.h"
index 7f08c4f..fe4572b 100644 (file)
@@ -2,6 +2,7 @@
 #include "cmd-action/cmd-spell.h"
 #include "effect/spells-effect-util.h"
 #include "io/targeting.h"
+#include "monster/place-monster-types.h"
 #include "mutation/mutation.h"
 #include "player/player-class.h"
 #include "player/player-effects.h"
index 354bbc2..f9e7029 100644 (file)
@@ -1,17 +1,16 @@
-#include "system/angband.h"
-#include "util/util.h"
-
-#include "grid/grid.h"
-#include "floor/floor-generate.h"
-#include "rooms.h"
-#include "room/rooms-pit-nest.h"
-#include "monster/monster.h"
-#include "monster-race/monster-race-hook.h"
+#include "room/rooms-pit-nest.h"
 #include "core/sort.h"
+#include "dungeon/dungeon.h"
+#include "floor/floor-generate.h"
 #include "floor/floor.h"
 #include "grid/feature.h"
-#include "dungeon/dungeon.h"
+#include "grid/grid.h"
+#include "monster-race/monster-race-hook.h"
+#include "monster/monster.h"
+#include "monster/place-monster-types.h"
 #include "room/pit-nest-kinds-table.h"
+#include "rooms.h"
+#include "util/util.h"
 
 /*!
 * @brief ダンジョン毎に指定されたピット配列を基準にランダムなpit/nestタイプを決める
index 3795c45..a5c1ca7 100644 (file)
@@ -1,4 +1,7 @@
-
+#pragma once 
+
+#include "system/angband.h"
+
 /*! デバッグ時にnestのモンスター情報を確認するための構造体 / A struct for nest monster information with cheat_hear */
 typedef struct
 {
@@ -7,6 +10,6 @@ typedef struct
 }
 nest_mon_info_type;
 
-extern bool build_type5(player_type *player_ptr);
-extern bool build_type6(player_type *player_ptr);
-extern bool build_type13(player_type *player_ptr);
+bool build_type5(player_type *player_ptr);
+bool build_type6(player_type *player_ptr);
+bool build_type13(player_type *player_ptr);
index dcf0a8f..b070d94 100644 (file)
@@ -6,6 +6,7 @@
 #include "grid/grid.h"
 #include "monster-race/monster-race-hook.h"
 #include "monster/monster.h"
+#include "monster/place-monster-types.h"
 #include "object-enchant/item-apply-magic.h"
 #include "object/object-kind-hook.h"
 #include "room/rooms.h"
index 3e8080d..7fff29c 100644 (file)
@@ -1,20 +1,25 @@
-#include "system/angband.h"
-#include "util/util.h"
-#include "room/rooms-vault.h"
+/*!
+ * @brief Vaultの生成処理
+ * @date 2018/09/11
+ * @author deskull
+ */
 
+#include "room/rooms-vault.h"
+#include "dungeon/dungeon.h"
 #include "floor/floor-generate.h"
-#include "grid/grid.h"
-#include "room/rooms.h"
-#include "store/store.h"
-#include "grid/trap.h"
-#include "monster/monster.h"
-#include "grid/feature.h"
 #include "floor/floor.h"
-#include "dungeon/dungeon.h"
 #include "floor/geometry.h"
 #include "floor/wild.h"
-#include "store/store-util.h"
+#include "grid/feature.h"
+#include "grid/grid.h"
+#include "grid/trap.h"
+#include "monster/monster.h"
+#include "monster/place-monster-types.h"
 #include "object-enchant/item-apply-magic.h"
+#include "room/rooms.h"
+#include "store/store-util.h"
+#include "store/store.h"
+#include "util/util.h"
 
 /*
  * The vault generation arrays
index 2d91ac2..e29db98 100644 (file)
@@ -1,13 +1,8 @@
 #pragma once 
 
-/*
- * Information about "vault generation"
- */
+#include "system/angband.h"
 
-typedef struct vault_type vault_type;
-
-struct vault_type
-{
+typedef struct vault_type {
        STR_OFFSET name;        /* Name (offset) */
        STR_OFFSET text;        /* Text (offset) */
 
@@ -15,15 +10,14 @@ struct vault_type
        PROB rat;                       /* Vault rating (unused) */
        POSITION hgt;           /* Vault height */
        POSITION wid;           /* Vault width */
-};
+} vault_type;
 
 extern vault_type *v_info;
 extern char *v_name;
 extern char *v_text;
-
 extern VAULT_IDX max_v_idx;
 
-extern bool build_type7(player_type *player_ptr);
-extern bool build_type8(player_type *player_ptr);
-extern bool build_type10(player_type *player_ptr);
-extern bool build_type17(player_type *player_ptr);
+bool build_type7(player_type *player_ptr);
+bool build_type8(player_type *player_ptr);
+bool build_type10(player_type *player_ptr);
+bool build_type17(player_type *player_ptr);
index 6d8c7d7..af92dc2 100644 (file)
  * None of the pits/nests are allowed to include "unique" monsters.\n
  */
 
-#include "system/angband.h"
-#include "util/util.h"
-
-#include "grid/feature.h"
-#include "floor/floor.h"
-#include "floor/floor-generate.h"
-#include "dungeon/dungeon.h"
 #include "room/rooms.h"
-
+#include "dungeon/dungeon.h"
+#include "floor/floor-generate.h"
+#include "floor/floor.h"
+#include "grid/feature.h"
+#include "grid/trap.h"
+#include "monster/monster.h"
+#include "monster/place-monster-types.h"
+#include "object-enchant/item-apply-magic.h"
 #include "room/rooms-city.h"
 #include "room/rooms-fractal.h"
 #include "room/rooms-normal.h"
 #include "room/rooms-special.h"
 #include "room/rooms-trap.h"
 #include "room/rooms-vault.h"
-
-#include "grid/trap.h"
-
-#include "monster/monster.h"
-#include "object-enchant/item-apply-magic.h"
+#include "util/util.h"
 
  /*!
   * 各部屋タイプの生成比定義
index cdcfa1a..9c4dd8c 100644 (file)
@@ -11,6 +11,7 @@
 
 #pragma once
 
+#include "system/angband.h"
 #include "grid/grid.h"
 
 #define ALLOW_CAVERNS_AND_LAKES
index bcf584a..04b610f 100644 (file)
@@ -4,10 +4,10 @@
 #include "grid/grid.h"
 #include "grid/trap.h"
 #include "main/sound-definitions-table.h"
+#include "monster/place-monster-types.h"
 #include "object-enchant/item-apply-magic.h"
-#include "perception/object-perception.h"
 #include "object/object-generator.h"
-#include "sv-definition/sv-other-types.h"
+#include "perception/object-perception.h"
 #include "player/player-class.h"
 #include "player/player-damage.h"
 #include "player/player-effects.h"
@@ -17,6 +17,7 @@
 #include "spell/spells-summon.h"
 #include "spell/spells-type.h"
 #include "spell/spells3.h"
+#include "sv-definition/sv-other-types.h"
 #include "util/util.h"
 
 /*!< この値以降の小項目IDを持った箱は大型の箱としてドロップ数を増やす / Special "sval" limit -- first "large" chest */
index f2475a1..46de083 100644 (file)
@@ -9,6 +9,7 @@
 #include "floor/floor.h"
 #include "io/targeting.h"
 #include "main/sound-definitions-table.h"
+#include "monster/place-monster-types.h"
 #include "mutation/mutation.h"
 #include "player/avatar.h"
 #include "player/player-damage.h"
index db95b11..6a27d89 100644 (file)
@@ -1,6 +1,7 @@
 #include "spell-realm/spells-trump.h"
 #include "floor/floor.h"
 #include "io/targeting.h"
+#include "monster/place-monster-types.h"
 #include "mutation/mutation.h"
 #include "player/avatar.h"
 #include "player/player-effects.h"
index df461f1..b319199 100644 (file)
@@ -5,6 +5,7 @@
 #include "inventory/player-inventory.h"
 #include "monster-race/race-indice-types.h"
 #include "monster/monster-status.h"
+#include "monster/place-monster-types.h"
 #include "monster/smart-learn-types.h"
 #include "object/item-use-flags.h"
 #include "object/object-hook.h"
index 9d2391e..b951f5a 100644 (file)
@@ -39,6 +39,7 @@
 #include "monster/monster-flag-types.h"
 #include "monster/monster-process.h"
 #include "monster/monster-status.h"
+#include "monster/place-monster-types.h"
 #include "monster/smart-learn-types.h"
 #include "mspell/monster-spell.h"
 #include "object-enchant/artifact.h"
index 7ab97ab..e32dc51 100644 (file)
@@ -31,6 +31,7 @@
 #include "io/write-diary.h"
 #include "market/arena.h"
 #include "monster/monster-status.h"
+#include "monster/place-monster-types.h"
 #include "monster/smart-learn-types.h"
 #include "mspell/monster-spell.h"
 #include "mutation/mutation.h"