OSDN Git Service

[Refactor] #40014 Separated race-indice-types.h from monster.h
authorHourier <hourier@users.sourceforge.jp>
Sun, 7 Jun 2020 05:56:32 +0000 (14:56 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sun, 7 Jun 2020 05:56:32 +0000 (14:56 +0900)
45 files changed:
Hengband/Hengband/Hengband.vcxproj
Hengband/Hengband/Hengband.vcxproj.filters
src/Makefile.am
src/autopick/autopick-util.c
src/combat/shoot.c
src/combat/slaying.c
src/core/game-play.c
src/effect/effect-monster-curse.c
src/effect/effect-monster-domination.c
src/effect/effect-monster-oldies.c
src/effect/effect-monster-resist-hurt.c
src/effect/effect-monster.c
src/effect/effect-player-curse.c
src/effect/effect-player-oldies.c
src/effect/effect-player-resist-hurt.c
src/io/load.c
src/market/arena-info-table.c
src/market/bounty.c
src/mind/mind-ninja.c
src/monster-attack/monster-attack-describer.c
src/monster-attack/monster-attack-status.c
src/monster-race/race-indice-types.h [new file with mode: 0644]
src/monster/monster-move.c
src/monster/monster-process.c
src/monster/monster-race-hook.c
src/monster/monster-race-hook.h
src/monster/monster-runaway.c
src/monster/monster-status.c
src/monster/monster.h
src/monster/monster1.c
src/monster/monster2.c
src/mspell/mspell-ball.c
src/mspell/mspell-breath.c
src/mspell/mspell-floor.c
src/mspell/mspell-special.c
src/mspell/mspell-summon.c
src/mspell/mspells1.c
src/mspell/mspells2.c
src/object-enchant/apply-magic-others.c
src/object/object-hook.c
src/object/warning.c
src/perception/identification.c
src/spell/process-effect.c
src/spell/spells-summon.c
src/system/h-type.h

index a40188e..371a59a 100644 (file)
     <ClInclude Include="..\..\src\info-reader\random-grid-effect-types.h" />\r
     <ClInclude Include="..\..\src\info-reader\skill-reader.h" />\r
     <ClInclude Include="..\..\src\info-reader\vault-reader.h" />\r
+    <ClInclude Include="..\..\src\monster-race\race-indice-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\object-enchant\random-art-bias-types.h" />\r
index 7946829..4ec381b 100644 (file)
     <ClInclude Include="..\..\src\art-definition\random-art-effects.h">
       <Filter>art-definition</Filter>
     </ClInclude>
+    <ClInclude Include="..\..\src\monster-race\race-indice-types.h">
+      <Filter>monster-race</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <None Include="..\..\src\wall.bmp" />
     <Filter Include="art-definition">
       <UniqueIdentifier>{fffcb35e-069c-4a97-ab60-0010a4d5d488}</UniqueIdentifier>
     </Filter>
+    <Filter Include="monster-race">
+      <UniqueIdentifier>{8de4a55f-fa83-496b-a42f-81078346c918}</UniqueIdentifier>
+    </Filter>
   </ItemGroup>
   <ItemGroup>
     <ResourceCompile Include="..\..\src\angband.rc" />
index 85ffeb8..08f5bc5 100644 (file)
@@ -304,6 +304,8 @@ hengband_SOURCES = \
        monster-attack/monster-attack-util.c monster-attack/monster-attack-util.h \
        monster-attack/monster-eating.c monster-attack/monster-eating.h \
        \
+       monster-race/race-indice-types.h \
+       \
        mspell/monster-spell.h \
        mspell/mspells1.c mspell/mspells2.c mspell/mspells3.c \
        mspell/assign-monster-spell.c mspell/assign-monster-spell.h \
@@ -525,9 +527,9 @@ COMPILE = $(srcdir)/gcc-wrap $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
        -Iart-definition -Iautopick -Ibirth -Icmd -Icmd-io -Icmd-item -Icombat \
        -Icore -Idungeon -Ieffect -Ifloor -Igrid -Iinfo-reader -Iinventory -Iio \
        -Iio-dump -Iknowledge -Imarket -Imelee -Imind -Imonster -Imonster-attack \
-       -Imspell -Imutation -Iobject -Iobject-enchant -Ipet -Iplayer -Iplayer-attack \
-       -Irealm -Iroom -Ispecific-object -Ispell -Ispell-kind -Ispell-realm \
-       -Isv-definition -Isystem -Iterm -Iutil -Iview -Iwizard -Iworld
+       -Imonster-race -Imspell -Imutation -Iobject -Iobject-enchant -Ipet -Iplayer \
+       -Iplayer-attack -Irealm -Iroom -Ispecific-object -Ispell -Ispell-kind \
+       -Ispell-realm -Isv-definition -Isystem -Iterm -Iutil -Iview -Iwizard -Iworld
 
 install-exec-hook:
 if SET_GID
index 820d44e..b9f2882 100644 (file)
@@ -1,5 +1,6 @@
 #include "autopick/autopick-util.h"
 #include "autopick/autopick-menu-data-table.h"
+#include "monster-race/race-indice-types.h"
 #include "object-enchant/item-feeling.h"
 
 /*
index 1478cdf..f5485aa 100644 (file)
@@ -9,6 +9,7 @@
 #include "inventory/inventory-object.h"
 #include "io/targeting.h"
 #include "main/sound-definitions-table.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster-status.h"
 #include "monster/monster.h"
 #include "mspell/monster-spell.h"
index 1f02d4b..2376127 100644 (file)
@@ -1,6 +1,7 @@
 #include "combat/slaying.h"
 #include "art-definition/art-sword-types.h"
 #include "mind/mind-samurai.h"
+#include "monster-race/race-indice-types.h"
 #include "object-enchant/tr-types.h"
 #include "object/object-flags.h"
 #include "realm/realm-hex-numbers.h"
index 3baf53e..5f5c335 100644 (file)
@@ -38,6 +38,7 @@
 #include "io/write-diary.h"
 #include "market/arena-info-table.h"
 #include "market/bounty.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/creature.h"
 #include "object/object-flavor.h"
 #include "player/player-class.h"
index 4116a70..7a292b2 100644 (file)
@@ -1,6 +1,7 @@
 #include "system/angband.h"
 #include "effect/effect-monster-util.h"
 #include "effect/effect-monster-curse.h"
+#include "monster-race/race-indice-types.h"
 
 gf_switch_result effect_monster_curse_1(effect_monster_type *em_ptr)
 {
index 7f8bf05..34c6a6d 100644 (file)
@@ -2,6 +2,7 @@
 #include "dungeon/quest.h"
 #include "effect/spells-effect-util.h"
 #include "floor/floor.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster-race-hook.h"
 #include "monster/monster-status.h"
 #include "pet/pet-fall-off.h"
index 01781da..5ef9779 100644 (file)
@@ -2,8 +2,9 @@
 #include "effect/effect-monster-util.h"
 #include "effect/effect-monster-oldies.h"
 #include "floor/floor.h"
-#include "player/avatar.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster-status.h"
+#include "player/avatar.h"
 
 // Powerful monsters can resist.
 gf_switch_result effect_monster_old_poly(effect_monster_type *em_ptr)
index 505810b..b6b9ea5 100644 (file)
@@ -1,6 +1,7 @@
 #include "system/angband.h"
 #include "effect/effect-monster-util.h"
 #include "effect/effect-monster-resist-hurt.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster-status.h"
 #include "spell/spells3.h"
 
index b6a7c3a..ae02408 100644 (file)
@@ -11,6 +11,7 @@
 #include "floor/floor-object.h"
 #include "io/write-diary.h"
 #include "main/sound-definitions-table.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster-status.h"
 #include "object-enchant/special-object-flags.h"
 #include "object/object-generator.h"
index e78392d..3334a72 100644 (file)
@@ -3,6 +3,7 @@
 #include "effect/effect-player-curse.h"
 #include "player/player-damage.h"
 #include "mind/mind-mirror-master.h"
+#include "monster-race/race-indice-types.h"
 #include "world/world.h"
 #include "mspell/monster-spell.h"
 #include "object-enchant/object-curse.h"
index 3e25523..1e81d96 100644 (file)
@@ -1,6 +1,7 @@
 #include "system/angband.h"
 #include "effect/effect-player-util.h"
 #include "effect/effect-player-oldies.h"
+#include "monster-race/race-indice-types.h"
 #include "player/player-effects.h"
 
 void effect_player_old_heal(player_type *target_ptr,
index 593c0d3..d0d2996 100644 (file)
@@ -2,6 +2,7 @@
 #include "art-definition/art-sword-types.h"
 #include "inventory/inventory-damage.h"
 #include "mind/mind-mirror-master.h"
+#include "monster-race/race-indice-types.h"
 #include "mspell/monster-spell.h"
 #include "mutation/mutation.h"
 #include "object/object-broken.h"
index 7ab4092..e5ccf6d 100644 (file)
@@ -62,6 +62,7 @@
 #include "locale/japanese.h"
 #include "market/arena.h"
 #include "market/bounty.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster.h"
 #include "mutation/mutation.h"
 #include "object-enchant/artifact.h"
index 11885f5..38247c0 100644 (file)
@@ -1,5 +1,6 @@
 #include "system/angband.h"
 #include "arena-info-table.h"
+#include "monster-race/race-indice-types.h"
 #include "sv-definition/sv-amulet-types.h"
 #include "sv-definition/sv-food-types.h"
 #include "sv-definition/sv-potion-types.h"
index 191d3ef..4f97c0b 100644 (file)
@@ -6,6 +6,7 @@
 #include "inventory/inventory-object.h"
 #include "market/bounty-prize-table.h"
 #include "market/building-util.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster-race-hook.h"
 #include "object-enchant/apply-magic.h"
 #include "object-enchant/item-apply-magic.h"
index 93bfa40..47582a7 100644 (file)
@@ -5,6 +5,7 @@
 #include "effect/spells-effect-util.h"
 #include "floor/floor-object.h"
 #include "io/targeting.h"
+#include "monster-race/race-indice-types.h"
 #include "object-enchant/trc-types.h"
 #include "object/object-generator.h"
 #include "object/object-kind-hook.h"
index 08468ca..75c3f7c 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "monster-attack/monster-attack-describer.h"
 #include "monster-attack/insults-moans.h"
+#include "monster-race/race-indice-types.h"
 #include "main/sound-definitions-table.h"
 
 static void show_jaian_song(monap_type *monap_ptr)
index 395e520..64dfe55 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "monster-attack/monster-attack-status.h"
 #include "mind/mind-mirror-master.h"
+#include "monster-race/race-indice-types.h"
 #include "player/player-effects.h"
 
 void process_blind_attack(player_type *target_ptr, monap_type *monap_ptr)
diff --git a/src/monster-race/race-indice-types.h b/src/monster-race/race-indice-types.h
new file mode 100644 (file)
index 0000000..7d1e62c
--- /dev/null
@@ -0,0 +1,143 @@
+#pragma once
+
+typedef enum monster_race_type {
+       MON_BEGGAR = 12,
+    MON_LEPER = 13,
+    MON_LION_HEART = 19,
+    MON_NOV_PRIEST = 45,
+    MON_GRIP = 53,
+    MON_WOLF = 54,
+    MON_FANG = 55,
+    MON_LOUSE = 69,
+    MON_PIRANHA = 70,
+    MON_COPPER_COINS = 85,
+    MON_NOV_PALADIN = 97,
+    MON_NOV_PRIEST_G = 109,
+    MON_SILVER_COINS = 117,
+    MON_D_ELF = 122,
+    MON_MANES = 128,
+    MON_NOV_PALADIN_G = 147,
+    MON_PHANTOM_W = 152,
+    MON_WOUNDED_BEAR = 159,
+    MON_D_ELF_MAGE = 178,
+    MON_D_ELF_WARRIOR = 182,
+    MON_BLUE_HORROR = 189,
+    MON_GOLD_COINS = 195,
+    MON_MASTER_YEEK = 224,
+    MON_PRIEST = 225,
+    MON_D_ELF_PRIEST = 226,
+    MON_MITHRIL_COINS = 239,
+    MON_PINK_HORROR = 242,
+    MON_IMP = 296,
+    MON_LIZARD_KING = 332,
+    MON_WYVERN = 334,
+    MON_SABRE_TIGER = 339,
+    MON_D_ELF_LORD = 348,
+    MON_ARCH_VILE = 357,
+    MON_JADE_MONK = 370,
+    MON_D_ELF_WARLOCK = 375,
+    MON_MENELDOR = 384,
+    MON_PHANTOM_B = 385,
+    MON_D_ELF_DRUID = 400,
+    MON_GWAIHIR = 410,
+    MON_ADAMANT_COINS = 423,
+    MON_COLBRAN = 435,
+    MON_MITHRIL_GOLEM = 464,
+    MON_THORONDOR = 468,
+    MON_GHOUL_KING = 483,
+    MON_NINJA = 485,
+    MON_BICLOPS = 490,
+    MON_IVORY_MONK = 492,
+    MON_GOEMON = 505,
+    MON_WATER_ELEM = 512,
+    MON_BLOODLETTER = 523,
+    MON_RAAL = 557,
+    MON_NIGHTBLADE = 564,
+    MON_BARON_HELL = 609,
+    MON_G_C_DRAKE = 646,
+    MON_F_ANGEL = 652,
+    MON_D_ELF_SORC = 657,
+    MON_IRON_LICH = 666,
+    MON_DREADMASTER = 690,
+    MON_DROLEM = 691,
+    MON_DAWN = 693,
+    MON_NAZGUL = 696,
+    MON_SMAUG = 697,
+    MON_STORMBRINGER = 698,
+    MON_ULTRA_PALADIN = 699,
+    MON_G_TITAN = 702,
+    MON_S_TYRANNO = 705,
+    MON_FAFNER = 712,
+    MON_G_BALROG = 720,
+    MON_BULLGATES = 732,
+    MON_LORD_CHAOS = 737,
+    MON_NIGHTWALKER = 768,
+    MON_SHADOWLORD = 774,
+    MON_JABBERWOCK = 778,
+    MON_ULT_BEHOLDER = 781,
+    MON_SHAMBLER = 786,
+    MON_BLACK_REAVER = 798,
+    MON_UNMAKER = 815,
+    MON_CYBER = 816,
+    MON_ANGMAR = 825,
+    MON_WYRM_POWER = 847,
+    MON_JORMUNGAND = 854,
+    MON_SAURON = 858,
+    MON_UNICORN_ORD = 859,
+    MON_OBERON = 860,
+    MON_MORGOTH = 861,
+    MON_SERPENT = 862,
+    MON_ONE_RING = 864,
+    MON_EBONY_MONK = 870,
+    MON_HAGURE = 871,
+    MON_DIO = 878,
+    MON_OHMU = 879,
+    MON_WONG = 880,
+    MON_ZOMBI_SERPENT = 883,
+    MON_D_ELF_SHADE = 886,
+    MON_TROLL_KING = 894,
+    MON_ELF_LORD = 900,
+    MON_G_MASTER_MYS = 917,
+    MON_IE = 921,
+    MON_TSUCHINOKO = 926,
+    MON_LOCKE_CLONE = 930,
+    MON_CALDARM = 931,
+    MON_BANORLUPART = 932,
+    MON_BANOR = 933,
+    MON_LUPART = 934,
+    MON_KENSHIROU = 936,
+    MON_W_KNIGHT = 938,
+    MON_BIKETAL = 945,
+    MON_IKETA = 949,
+    MON_B_DEATH_SWORD = 953,
+    MON_YASE_HORSE = 955,
+    MON_HORSE = 956,
+    MON_BOTEI = 963,
+    MON_KAGE = 964,
+    MON_JAIAN = 967,
+    MON_FENGHUANG = 988,
+    MON_SUKE = 1001,
+    MON_KAKU = 1002,
+    MON_A_GOLD = 1010,
+    MON_A_SILVER = 1011,
+    MON_ROLENTO = 1013,
+    MON_RAOU = 1018,
+    MON_GRENADE = 1023,
+    MON_DEBBY = 1032,
+    MON_KNI_TEMPLAR = 1037,
+    MON_PALADIN = 1038,
+    MON_CHAMELEON = 1040,
+    MON_CHAMELEON_K = 1041,
+    MON_TOPAZ_MONK = 1047,
+    MON_M_MINDCRAFTER = 1056,
+    MON_ELDER_VAMPIRE = 1058,
+    MON_NOBORTA = 1059,
+    MON_MORI_TROLL = 1060,
+    MON_BARNEY = 1061,
+    MON_GROO = 1062,
+    MON_LOUSY = 1063,
+    MON_WYRM_SPACE = 1064,
+    MON_JIZOTAKO = 1065,
+    MON_TANUKI = 1067,
+    MON_ALIEN_JURAL = 1082,
+} monster_race_type;
index fd69d32..6737e6d 100644 (file)
@@ -11,6 +11,7 @@
 #include "pet/pet-util.h"
 #include "monster/creature.h"
 #include "io/files-util.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster-status.h"
 #include "player/player-move.h"
 #include "spell/spells-type.h"
index bcdea04..785943d 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "system/angband.h"
 #include "util/util.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster-direction.h"
 #include "monster/monster-move.h"
 #include "monster/monster-runaway.h"
index 644dcc6..f4494cb 100644 (file)
@@ -1,14 +1,13 @@
-#include "system/angband.h"
-#include "util/util.h"
-
-#include "monster/monster-race-hook.h"
-#include "monster/monster.h"
-#include "mspell/monster-spell.h"
-#include "floor/floor.h"
+#include "monster/monster-race-hook.h"
 #include "dungeon/dungeon.h"
-#include "monster/monster-race.h"
+#include "floor/floor.h"
 #include "monster-attack/monster-attack-effect.h"
 #include "monster-attack/monster-attack-types.h"
+#include "monster-race/race-indice-types.h"
+#include "monster/monster-race.h"
+#include "monster/monster.h"
+#include "mspell/monster-spell.h"
+#include "util/util.h"
 
 /*! 通常pit生成時のモンスターの構成条件ID / Race index for "monster pit (clone)" */
 int vault_aux_race;
index de4fb84..2779ba0 100644 (file)
@@ -1,54 +1,58 @@
-extern int vault_aux_race;
+#pragma once
+
+#include "system/angband.h"
+
+extern int vault_aux_race;
 extern char vault_aux_char;
 extern BIT_FLAGS vault_aux_dragon_mask4;
 
-extern bool mon_hook_quest(MONRACE_IDX r_idx);
-extern bool mon_hook_dungeon(MONRACE_IDX r_idx);
-extern bool mon_hook_ocean(MONRACE_IDX r_idx);
-extern bool mon_hook_shore(MONRACE_IDX r_idx);
-extern bool mon_hook_waste(MONRACE_IDX r_idx);
-extern bool mon_hook_town(MONRACE_IDX r_idx);
-extern bool mon_hook_wood(MONRACE_IDX r_idx);
-extern bool mon_hook_volcano(MONRACE_IDX r_idx);
-extern bool mon_hook_wood(MONRACE_IDX r_idx);
-extern bool mon_hook_volcano(MONRACE_IDX r_idx);
-extern bool mon_hook_mountain(MONRACE_IDX r_idx);
-extern bool mon_hook_grass(MONRACE_IDX r_idx);
-extern bool mon_hook_deep_water(MONRACE_IDX r_idx);
-extern bool mon_hook_shallow_water(MONRACE_IDX r_idx);
-extern bool mon_hook_lava(MONRACE_IDX r_idx);
-extern bool mon_hook_floor(MONRACE_IDX r_idx);
+bool mon_hook_quest(MONRACE_IDX r_idx);
+bool mon_hook_dungeon(MONRACE_IDX r_idx);
+bool mon_hook_ocean(MONRACE_IDX r_idx);
+bool mon_hook_shore(MONRACE_IDX r_idx);
+bool mon_hook_waste(MONRACE_IDX r_idx);
+bool mon_hook_town(MONRACE_IDX r_idx);
+bool mon_hook_wood(MONRACE_IDX r_idx);
+bool mon_hook_volcano(MONRACE_IDX r_idx);
+bool mon_hook_wood(MONRACE_IDX r_idx);
+bool mon_hook_volcano(MONRACE_IDX r_idx);
+bool mon_hook_mountain(MONRACE_IDX r_idx);
+bool mon_hook_grass(MONRACE_IDX r_idx);
+bool mon_hook_deep_water(MONRACE_IDX r_idx);
+bool mon_hook_shallow_water(MONRACE_IDX r_idx);
+bool mon_hook_lava(MONRACE_IDX r_idx);
+bool mon_hook_floor(MONRACE_IDX r_idx);
 
-extern void vault_prep_clone(player_type *player_ptr);
-extern void vault_prep_dragon(player_type *player_ptr);
-extern void vault_prep_symbol(player_type *player_ptr);
+void vault_prep_clone(player_type *player_ptr);
+void vault_prep_dragon(player_type *player_ptr);
+void vault_prep_symbol(player_type *player_ptr);
 
-extern bool vault_aux_lite(MONRACE_IDX r_idx);
-extern bool vault_aux_shards(MONRACE_IDX r_idx);
-extern bool vault_aux_simple(MONRACE_IDX r_idx);
-extern bool vault_aux_jelly(MONRACE_IDX r_idx);
-extern bool vault_aux_animal(MONRACE_IDX r_idx);
-extern bool vault_aux_undead(MONRACE_IDX r_idx);
-extern bool vault_aux_chapel_g(MONRACE_IDX r_idx);
-extern bool vault_aux_kennel(MONRACE_IDX r_idx);
-extern bool vault_aux_mimic(MONRACE_IDX r_idx);
-extern bool vault_aux_clone(MONRACE_IDX r_idx);
-extern bool vault_aux_symbol_e(MONRACE_IDX r_idx);
-extern bool vault_aux_symbol_g(MONRACE_IDX r_idx);
-extern bool vault_aux_orc(MONRACE_IDX r_idx);
-extern bool vault_aux_troll(MONRACE_IDX r_idx);
-extern bool vault_aux_giant(MONRACE_IDX r_idx);
-extern bool vault_aux_dragon(MONRACE_IDX r_idx);
-extern bool vault_aux_demon(MONRACE_IDX r_idx);
-extern bool vault_aux_cthulhu(MONRACE_IDX r_idx);
-extern bool vault_aux_dark_elf(MONRACE_IDX r_idx);
+bool vault_aux_lite(MONRACE_IDX r_idx);
+bool vault_aux_shards(MONRACE_IDX r_idx);
+bool vault_aux_simple(MONRACE_IDX r_idx);
+bool vault_aux_jelly(MONRACE_IDX r_idx);
+bool vault_aux_animal(MONRACE_IDX r_idx);
+bool vault_aux_undead(MONRACE_IDX r_idx);
+bool vault_aux_chapel_g(MONRACE_IDX r_idx);
+bool vault_aux_kennel(MONRACE_IDX r_idx);
+bool vault_aux_mimic(MONRACE_IDX r_idx);
+bool vault_aux_clone(MONRACE_IDX r_idx);
+bool vault_aux_symbol_e(MONRACE_IDX r_idx);
+bool vault_aux_symbol_g(MONRACE_IDX r_idx);
+bool vault_aux_orc(MONRACE_IDX r_idx);
+bool vault_aux_troll(MONRACE_IDX r_idx);
+bool vault_aux_giant(MONRACE_IDX r_idx);
+bool vault_aux_dragon(MONRACE_IDX r_idx);
+bool vault_aux_demon(MONRACE_IDX r_idx);
+bool vault_aux_cthulhu(MONRACE_IDX r_idx);
+bool vault_aux_dark_elf(MONRACE_IDX r_idx);
 
-extern bool vault_monster_okay(MONRACE_IDX r_idx);
+bool vault_monster_okay(MONRACE_IDX r_idx);
 
-extern bool monster_living(MONRACE_IDX r_idx);
-extern bool no_questor_or_bounty_uniques(MONRACE_IDX r_idx);
-extern bool monster_hook_human(MONRACE_IDX r_idx);
-extern bool get_nightmare(MONRACE_IDX r_idx);
-extern bool monster_is_fishing_target(MONRACE_IDX r_idx);
-extern bool monster_can_entry_arena(MONRACE_IDX r_idx);
-extern bool item_monster_okay(MONRACE_IDX r_idx);
+bool monster_living(MONRACE_IDX r_idx);
+bool no_questor_or_bounty_uniques(MONRACE_IDX r_idx);
+bool monster_hook_human(MONRACE_IDX r_idx);
+bool get_nightmare(MONRACE_IDX r_idx);
+bool monster_is_fishing_target(MONRACE_IDX r_idx);
+bool monster_can_entry_arena(MONRACE_IDX r_idx);
+bool item_monster_okay(MONRACE_IDX r_idx);
index 6ca9f88..82bd986 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "monster/monster-runaway.h"
 #include "dungeon/quest.h"
+#include "monster-race/race-indice-types.h"
 #include "pet/pet-fall-off.h"
 #include "player/player-move.h"
 
index cc31fe7..fdde408 100644 (file)
@@ -13,6 +13,7 @@
 #include "io/report.h"
 #include "io/write-diary.h"
 #include "main/sound-definitions-table.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/creature.h"
 #include "monster/monster-process.h"
 #include "monster/monster-race-hook.h"
index 00b4cb1..ea9a046 100644 (file)
@@ -129,146 +129,6 @@ typedef struct
        MONSTER_IDX parent_m_idx;
 } monster_type;
 
-#define MON_BEGGAR        12
-#define MON_LEPER         13
-#define MON_LION_HEART    19
-#define MON_NOV_PRIEST    45
-#define MON_GRIP          53
-#define MON_WOLF          54
-#define MON_FANG          55
-#define MON_LOUSE         69
-#define MON_PIRANHA       70
-#define MON_COPPER_COINS  85
-#define MON_NOV_PALADIN   97
-#define MON_NOV_PRIEST_G  109
-#define MON_SILVER_COINS  117
-#define MON_D_ELF         122
-#define MON_MANES         128
-#define MON_NOV_PALADIN_G 147
-#define MON_PHANTOM_W     152
-#define MON_WOUNDED_BEAR  159
-#define MON_D_ELF_MAGE    178
-#define MON_D_ELF_WARRIOR 182
-#define MON_BLUE_HORROR   189
-#define MON_GOLD_COINS    195
-#define MON_MASTER_YEEK   224
-#define MON_PRIEST        225
-#define MON_D_ELF_PRIEST  226
-#define MON_MITHRIL_COINS 239
-#define MON_PINK_HORROR   242
-#define MON_IMP           296
-#define MON_LIZARD_KING   332
-#define MON_WYVERN        334
-#define MON_SABRE_TIGER   339
-#define MON_D_ELF_LORD    348
-#define MON_ARCH_VILE     357
-#define MON_JADE_MONK     370
-#define MON_D_ELF_WARLOCK 375
-#define MON_MENELDOR      384
-#define MON_PHANTOM_B     385
-#define MON_D_ELF_DRUID   400
-#define MON_GWAIHIR       410
-#define MON_ADAMANT_COINS 423
-#define MON_COLBRAN       435
-#define MON_MITHRIL_GOLEM 464
-#define MON_THORONDOR     468
-#define MON_GHOUL_KING    483
-#define MON_NINJA         485
-#define MON_BICLOPS       490
-#define MON_IVORY_MONK    492
-#define MON_GOEMON        505
-#define MON_WATER_ELEM    512
-#define MON_BLOODLETTER   523
-#define MON_RAAL          557
-#define MON_NIGHTBLADE    564
-#define MON_BARON_HELL    609
-#define MON_G_C_DRAKE     646
-#define MON_F_ANGEL       652
-#define MON_D_ELF_SORC    657
-#define MON_IRON_LICH     666
-#define MON_DREADMASTER   690
-#define MON_DROLEM        691
-#define MON_DAWN          693
-#define MON_NAZGUL        696
-#define MON_SMAUG         697
-#define MON_STORMBRINGER  698
-#define MON_ULTRA_PALADIN 699
-#define MON_G_TITAN       702
-#define MON_S_TYRANNO     705
-#define MON_FAFNER        712
-#define MON_G_BALROG      720
-#define MON_BULLGATES     732
-#define MON_LORD_CHAOS    737
-#define MON_NIGHTWALKER   768
-#define MON_SHADOWLORD    774
-#define MON_JABBERWOCK    778
-#define MON_ULT_BEHOLDER  781
-#define MON_SHAMBLER      786
-#define MON_BLACK_REAVER  798
-#define MON_UNMAKER       815
-#define MON_CYBER         816
-#define MON_ANGMAR        825
-#define MON_WYRM_POWER    847
-#define MON_JORMUNGAND    854
-#define MON_SAURON        858
-#define MON_UNICORN_ORD   859
-#define MON_OBERON        860
-#define MON_MORGOTH       861
-#define MON_SERPENT       862
-#define MON_ONE_RING      864
-#define MON_EBONY_MONK    870
-#define MON_HAGURE        871
-#define MON_DIO           878
-#define MON_OHMU          879
-#define MON_WONG          880
-#define MON_ZOMBI_SERPENT 883
-#define MON_D_ELF_SHADE   886
-#define MON_TROLL_KING    894
-#define MON_ELF_LORD      900
-#define MON_G_MASTER_MYS  917
-#define MON_IE            921
-#define MON_TSUCHINOKO    926
-#define MON_LOCKE_CLONE   930
-#define MON_CALDARM       931
-#define MON_BANORLUPART   932
-#define MON_BANOR         933
-#define MON_LUPART        934
-#define MON_KENSHIROU     936
-#define MON_W_KNIGHT      938
-#define MON_BIKETAL       945
-#define MON_IKETA         949
-#define MON_B_DEATH_SWORD 953
-#define MON_YASE_HORSE    955
-#define MON_HORSE         956
-#define MON_BOTEI         963
-#define MON_KAGE          964
-#define MON_JAIAN         967
-#define MON_FENGHUANG     988
-#define MON_SUKE          1001
-#define MON_KAKU          1002
-#define MON_A_GOLD        1010
-#define MON_A_SILVER      1011
-#define MON_ROLENTO       1013
-#define MON_RAOU          1018
-#define MON_GRENADE       1023
-#define MON_DEBBY         1032
-#define MON_KNI_TEMPLAR   1037
-#define MON_PALADIN       1038
-#define MON_CHAMELEON     1040
-#define MON_CHAMELEON_K   1041
-#define MON_TOPAZ_MONK    1047
-#define MON_M_MINDCRAFTER 1056
-#define MON_ELDER_VAMPIRE 1058
-#define MON_NOBORTA       1059
-#define MON_MORI_TROLL    1060
-#define MON_BARNEY        1061
-#define MON_GROO          1062
-#define MON_LOUSY         1063
-#define MON_WYRM_SPACE    1064
-#define MON_JIZOTAKO      1065
-#define MON_TANUKI        1067
-#define MON_ALIEN_JURAL   1082
-
 /*
  * Bit flags for the place_monster_???() (etc)
  */
index a0ae18f..0bb08a5 100644 (file)
@@ -31,6 +31,7 @@
 #include "melee/melee-postprocess.h"
 #include "monster-attack/monster-attack-effect.h"
 #include "monster-attack/monster-attack-types.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster-race-hook.h"
 #include "monster/monster.h"
 #include "mspell/monster-spell.h"
index 54dd372..2410323 100644 (file)
@@ -25,6 +25,7 @@
 #include "io/write-diary.h"
 #include "main/sound-definitions-table.h"
 #include "monster-attack/monster-attack-types.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/creature.h"
 #include "monster/monster-race-hook.h"
 #include "monster/monster-race.h"
index aa01e6c..b6b6ca0 100644 (file)
@@ -1,5 +1,6 @@
 #include "system/angband.h"
 #include "floor/floor.h"
+#include "monster-race/race-indice-types.h"
 #include "mspell/mspell-ball.h"
 #include "mspell/mspell-type.h"
 #include "mspell/monster-spell.h"
index 90d9773..9d26fb1 100644 (file)
@@ -3,6 +3,7 @@
 #include "mspell/monster-spell.h"
 #include "spell/spells-type.h"
 #include "main/sound-definitions-table.h"
+#include "monster-race/race-indice-types.h"
 #include "mspell/mspell-util.h"
 #include "mspell/mspell-damage-calculator.h"
 #include "player/player-move.h"
index ad85dfa..3f78628 100644 (file)
@@ -7,6 +7,7 @@
 #include "mspell/mspell-floor.h"
 #include "art-definition/art-bow-types.h"
 #include "effect/effect-characteristics.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster-status.h"
 #include "mspell/monster-spell.h"
 #include "mspell/mspell-status.h"
index 4a82cc4..7a9c403 100644 (file)
@@ -8,6 +8,7 @@
 #include "melee/melee-postprocess.h"
 #include "effect/effect-characteristics.h"
 #include "main/sound-definitions-table.h"
+#include "monster-race/race-indice-types.h"
 #include "mspell/monster-spell.h"
 #include "mspell/mspell-util.h"
 #include "player/player-damage.h"
index d788462..079f229 100644 (file)
@@ -1,5 +1,6 @@
 #include "mspell/mspell-summon.h"
 #include "effect/effect-characteristics.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster-status.h"
 #include "mspell/monster-spell.h"
 #include "mspell/mspell-util.h"
index 3865ed7..da68003 100644 (file)
@@ -47,6 +47,7 @@
 #include "dungeon/quest.h"
 #include "player/player-move.h"
 #include "player/player-status.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster.h"
 #include "mspell/monster-spell.h"
 #include "spell/spells-type.h"
index dcd1c66..8897a44 100644 (file)
@@ -19,6 +19,7 @@
 #include "dungeon/quest.h"
 #include "player/player-move.h"
 #include "player/player-class.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster.h"
 #include "monster/monster-status.h"
 #include "mspell/monster-spell.h"
index 8d7da79..a35cb7c 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "object-enchant/apply-magic-others.h"
 #include "floor/floor.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster-race-hook.h"
 #include "object-enchant/artifact.h"
 #include "object-enchant/object-ego.h"
index 587af77..de54fde 100644 (file)
@@ -9,6 +9,7 @@
 #include "art-definition/art-armor-types.h"
 #include "dungeon/quest.h"
 #include "floor/floor.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster.h"
 #include "object-enchant/artifact.h"
 #include "object-enchant/item-feeling.h"
index d4315b0..ebe5955 100644 (file)
@@ -5,6 +5,7 @@
 #include "grid/feature.h"
 #include "monster-attack/monster-attack-effect.h"
 #include "monster-attack/monster-attack-types.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster.h"
 #include "mspell/monster-spell.h"
 #include "mspell/mspell-damage-calculator.h"
index d4aafcd..2a38cc1 100644 (file)
@@ -1,5 +1,6 @@
 #include "perception/identification.h"
 #include "art-definition/art-protector-types.h"
+#include "monster-race/race-indice-types.h"
 #include "object-enchant/artifact.h"
 #include "object-enchant/object-ego.h"
 #include "object-enchant/tr-types.h"
index 26ff467..735cfb3 100644 (file)
@@ -9,6 +9,7 @@
 #include "effect/spells-effect-util.h"
 #include "floor/floor.h"
 #include "main/sound-definitions-table.h"
+#include "monster-race/race-indice-types.h"
 #include "pet/pet-fall-off.h"
 #include "spell/spells-type.h"
 #include "spell/range-calc.h"
index 1daf481..46246dd 100644 (file)
@@ -3,6 +3,7 @@
 #include "floor/floor.h"
 #include "inventory/inventory-object.h"
 #include "inventory/player-inventory.h"
+#include "monster-race/race-indice-types.h"
 #include "monster/monster-status.h"
 #include "object/item-use-flags.h"
 #include "object/object-hook.h"
index 4ed040d..9633e4f 100644 (file)
@@ -101,8 +101,8 @@ typedef s32b ACTION_IDX;            /*!< プレイヤーが現在取っている常時行
 typedef s16b BACT_IDX;                 /*!< 町の施設処理のID定義 */
 typedef s16b BACT_RESTRICT_IDX;        /*!< 町の施設処理の規制処理ID定義 */
 
-typedef s16b MONRACE_IDX;              /*!< ゲーム中のモンスター種族ID型を定義 */
-typedef s16b MONSTER_IDX;              /*!< ゲーム中のモンスター個体ID型を定義 */
+typedef s16b MONRACE_IDX;              /*!< todo monster_race_typeに差し替えて消滅させる ゲーム中のモンスター種族ID型を定義 */
+typedef s16b MONSTER_IDX;              /*!< todo monster_race_typeに差し替えて消滅させる ゲーム中のモンスター個体ID型を定義 */
 typedef s16b DUNGEON_IDX;              /*!< ゲーム中のダンジョンID型を定義 */
 typedef s16b REALM_IDX;                        /*!< ゲーム中の魔法領域ID型を定義 */
 typedef s16b ARTIFACT_IDX;             /*!< ゲーム中のアーティファクトID型を定義 */