From 251b07b003c4372d7924eba16a715e1d39a62e16 Mon Sep 17 00:00:00 2001 From: Hourier Date: Sun, 31 May 2020 21:46:45 +0900 Subject: [PATCH] [Refactor] #40416 Moved pet-fall-off.c/h from monster/ to pet/ --- Hengband/Hengband/Hengband.vcxproj | 4 ++-- Hengband/Hengband/Hengband.vcxproj.filters | 10 +++++----- src/Makefile.am | 2 +- src/combat/melee-postprocess.c | 2 +- src/combat/monster-attack-player.c | 2 +- src/effect/effect-monster-domination.c | 2 +- src/monster/monster-process.c | 2 +- src/monster/monster-runaway.c | 2 +- src/monster/monster1.c | 2 +- src/monster/monster2.c | 2 +- src/{monster => pet}/pet-fall-off.c | 2 +- src/{monster => pet}/pet-fall-off.h | 0 src/spell/process-effect.c | 2 +- src/spell/spells2.c | 2 +- 14 files changed, 18 insertions(+), 18 deletions(-) rename src/{monster => pet}/pet-fall-off.c (99%) rename src/{monster => pet}/pet-fall-off.h (100%) diff --git a/Hengband/Hengband/Hengband.vcxproj b/Hengband/Hengband/Hengband.vcxproj index f76c45776..f42ebfcfd 100644 --- a/Hengband/Hengband/Hengband.vcxproj +++ b/Hengband/Hengband/Hengband.vcxproj @@ -209,7 +209,7 @@ - + @@ -487,7 +487,7 @@ - + diff --git a/Hengband/Hengband/Hengband.vcxproj.filters b/Hengband/Hengband/Hengband.vcxproj.filters index 158e7cdac..90964a6a8 100644 --- a/Hengband/Hengband/Hengband.vcxproj.filters +++ b/Hengband/Hengband/Hengband.vcxproj.filters @@ -1061,8 +1061,8 @@ combat - - monster + + pet @@ -2275,12 +2275,12 @@ combat - - monster - pet + + pet + diff --git a/src/Makefile.am b/src/Makefile.am index ee32b8e01..5ce35c3a0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -186,8 +186,8 @@ hengband_SOURCES = \ monster/monster-status.c monster/monster-status.h \ monster/monster1.c monster/monster2.c \ monster/horror-descriptions.c monster/horror-descriptions.h \ - monster/pet-fall-off.c monster/pet-fall-off.h \ \ + pet/pet-fall-off.c pet/pet-fall-off.h \ pet/pet-util.h \ \ mutation/mutation.c mutation/mutation.h \ diff --git a/src/combat/melee-postprocess.c b/src/combat/melee-postprocess.c index c0af6a8eb..3ab87496c 100644 --- a/src/combat/melee-postprocess.c +++ b/src/combat/melee-postprocess.c @@ -17,7 +17,7 @@ #include "monster/monster-race-hook.h" #include "monster/monster-status.h" #include "monster/monster.h" -#include "monster/pet-fall-off.h" +#include "pet/pet-fall-off.h" #include "mspell/monster-spell.h" #include "player/player-class.h" #include "player/player-move.h" diff --git a/src/combat/monster-attack-player.c b/src/combat/monster-attack-player.c index db7198c44..2310334a8 100644 --- a/src/combat/monster-attack-player.c +++ b/src/combat/monster-attack-player.c @@ -21,7 +21,7 @@ #include "main/sound-definitions-table.h" #include "mind/racial-samurai.h" #include "monster/monster-status.h" -#include "monster/pet-fall-off.h" +#include "pet/pet-fall-off.h" #include "object/object-hook.h" #include "player/player-damage.h" #include "player/player-effects.h" diff --git a/src/effect/effect-monster-domination.c b/src/effect/effect-monster-domination.c index d5878a5c2..7eba63e37 100644 --- a/src/effect/effect-monster-domination.c +++ b/src/effect/effect-monster-domination.c @@ -4,7 +4,7 @@ #include "floor/floor.h" #include "monster/monster-race-hook.h" #include "monster/monster-status.h" -#include "monster/pet-fall-off.h" +#include "pet/pet-fall-off.h" #include "object/trc-types.h" #include "player/player-effects.h" #include "spell/spells-diceroll.h" diff --git a/src/monster/monster-process.c b/src/monster/monster-process.c index 8f0b163d1..2329f7eb9 100644 --- a/src/monster/monster-process.c +++ b/src/monster/monster-process.c @@ -24,7 +24,7 @@ #include "io/write-diary.h" #include "cmd/cmd-dump.h" -#include "monster/pet-fall-off.h" +#include "pet/pet-fall-off.h" #include "monster/creature.h" #include "combat/melee-postprocess.h" #include "spell/spells-summon.h" diff --git a/src/monster/monster-runaway.c b/src/monster/monster-runaway.c index 9b6888958..6ca9f88fb 100644 --- a/src/monster/monster-runaway.c +++ b/src/monster/monster-runaway.c @@ -6,7 +6,7 @@ #include "monster/monster-runaway.h" #include "dungeon/quest.h" -#include "monster/pet-fall-off.h" +#include "pet/pet-fall-off.h" #include "player/player-move.h" /*! diff --git a/src/monster/monster1.c b/src/monster/monster1.c index 8da4a4b56..27d3983fc 100644 --- a/src/monster/monster1.c +++ b/src/monster/monster1.c @@ -18,7 +18,7 @@ #include "io/write-diary.h" #include "cmd/cmd-dump.h" #include "cmd/cmd-building.h" -#include "monster/pet-fall-off.h" +#include "pet/pet-fall-off.h" #include "effect/effect-characteristics.h" #include "object/object-kind-hook.h" #include "player/player-personalities-table.h" diff --git a/src/monster/monster2.c b/src/monster/monster2.c index 5e39128b1..c042e66f5 100644 --- a/src/monster/monster2.c +++ b/src/monster/monster2.c @@ -17,7 +17,7 @@ #include "io/write-diary.h" #include "cmd/cmd-dump.h" -#include "monster/pet-fall-off.h" +#include "pet/pet-fall-off.h" #include "dungeon/dungeon.h" #include "effect/effect-characteristics.h" #include "object/object2.h" diff --git a/src/monster/pet-fall-off.c b/src/pet/pet-fall-off.c similarity index 99% rename from src/monster/pet-fall-off.c rename to src/pet/pet-fall-off.c index ab163fb50..37e32a9ef 100644 --- a/src/monster/pet-fall-off.c +++ b/src/pet/pet-fall-off.c @@ -1,4 +1,4 @@ -#include "monster/pet-fall-off.h" +#include "pet/pet-fall-off.h" #include "cmd/cmd-pet.h" // 暫定、player_can_ride_aux() を移動する #include "core/stuff-handler.h" #include "floor/floor.h" diff --git a/src/monster/pet-fall-off.h b/src/pet/pet-fall-off.h similarity index 100% rename from src/monster/pet-fall-off.h rename to src/pet/pet-fall-off.h diff --git a/src/spell/process-effect.c b/src/spell/process-effect.c index 90c923472..2820a67c6 100644 --- a/src/spell/process-effect.c +++ b/src/spell/process-effect.c @@ -2,7 +2,7 @@ #include "effect/spells-effect-util.h" #include "spell/process-effect.h" #include "floor/floor.h" -#include "monster/pet-fall-off.h" +#include "pet/pet-fall-off.h" #include "core/stuff-handler.h" #include "effect/effect-feature.h" #include "effect/effect-item.h" diff --git a/src/spell/spells2.c b/src/spell/spells2.c index 149b28702..1de5b9f8a 100644 --- a/src/spell/spells2.c +++ b/src/spell/spells2.c @@ -23,7 +23,7 @@ #include "io/write-diary.h" #include "cmd/cmd-pet.h" #include "pet/pet-util.h" -#include "monster/pet-fall-off.h" +#include "pet/pet-fall-off.h" #include "cmd/cmd-dump.h" #include "effect/effect-characteristics.h" #include "grid/grid.h" -- 2.11.0