OSDN Git Service

[Refactor] #40399 Separated sv-lite-types.h from object.h
authorHourier <hourier@users.sourceforge.jp>
Thu, 28 May 2020 14:59:44 +0000 (23:59 +0900)
committerHourier <hourier@users.sourceforge.jp>
Thu, 28 May 2020 14:59:44 +0000 (23:59 +0900)
18 files changed:
Hengband/Hengband/Hengband.vcxproj
Hengband/Hengband/Hengband.vcxproj.filters
src/Makefile.am
src/birth/inventory-initializer.c
src/cmd/cmd-activate.c
src/cmd/cmd-item.c
src/io/load.c
src/market/articles-on-sale.c
src/object/lite-processor.c
src/object/object-flavor.c
src/object/object-hook.c
src/object/object1.c
src/object/object1.h
src/object/object2.c
src/object/sv-lite-types.h [new file with mode: 0644]
src/player/player-status.c
src/spell/spells-object.c
src/store/store-util.c

index 518323c..4d56dfd 100644 (file)
     <ClInclude Include="..\..\src\object\sv-armor-types.h" />\r
     <ClInclude Include="..\..\src\object\sv-bow-types.h" />\r
     <ClInclude Include="..\..\src\object\sv-digging-types.h" />\r
+    <ClInclude Include="..\..\src\object\sv-lite-types.h" />\r
     <ClInclude Include="..\..\src\object\sv-other-types.h" />\r
     <ClInclude Include="..\..\src\object\sv-potion-types.h" />\r
     <ClInclude Include="..\..\src\object\sv-protector-types.h" />\r
index c5abac3..06f55a2 100644 (file)
     <ClInclude Include="..\..\src\object\sv-potion-types.h">
       <Filter>object</Filter>
     </ClInclude>
+    <ClInclude Include="..\..\src\object\sv-lite-types.h">
+      <Filter>object</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <None Include="..\..\src\wall.bmp" />
index 4b7bdea..fa9cdae 100644 (file)
@@ -208,10 +208,11 @@ hengband_SOURCES = \
        object/old-ego-extra-values.h object/special-object-flags.h \
        object/object-mark-types.h object/object-util.h \
        object/item-apply-magic.h \
-       object/sv-bow-types.h object/sv-digging-types.h object/sv-other-types.h \
+       object/sv-bow-types.h object/sv-digging-types.h \
        object/sv-weapon-types.h object/sv-protector-types.h object/sv-armor-types.h \
-       object/sv-potion-types.h object/sv-ring-types.h \
-       object/item-feeling.h object/item-use-flags.h \
+       object/sv-lite-types.h object/sv-potion-types.h object/sv-ring-types.h \
+        object/sv-other-types.h \
+        object/item-feeling.h object/item-use-flags.h \
        \
        inventory/simple-appraiser.c inventory/simple-appraiser.h \
        inventory/inventory-curse.c inventory/inventory-curse.h \
index 800b842..944cd32 100644 (file)
@@ -7,6 +7,7 @@
 #include "object/object-ego.h"
 #include "object/object-kind.h"
 #include "object/sv-bow-types.h"
+#include "object/sv-lite-types.h"
 #include "object/sv-other-types.h"
 #include "object/sv-potion-types.h"
 #include "object/sv-ring-types.h"
index 7b3cd57..2e5a66f 100644 (file)
@@ -29,6 +29,7 @@
 #include "io/files-util.h"
 #include "object/object-kind.h"
 #include "object/object-ego.h"
+#include "object/sv-lite-types.h"
 #include "object/sv-ring-types.h"
 #include "io/targeting.h"
 #include "world/world.h"
index d648d35..1541b06 100644 (file)
@@ -37,6 +37,7 @@
 #include "dungeon/quest.h"
 #include "object/artifact.h"
 #include "object/special-object-flags.h"
+#include "object/sv-lite-types.h"
 #include "object/trc-types.h"
 #include "player/avatar.h"
 #include "player/player-status.h"
index 1876e1d..b048c1e 100644 (file)
@@ -91,6 +91,7 @@
 #include "object/tr-types.h"
 #include "object/object-mark-types.h"
 #include "object/sv-armor-types.h"
+#include "object/sv-lite-types.h"
 #include "object/trc-types.h"
 #include "object/old-ego-extra-values.h" // TODO v1.5.0以前のセーブファイルをロードする処理を分離する.
 
index 70aa4b9..6b9c0c6 100644 (file)
@@ -5,6 +5,7 @@
 #include "object/sv-bow-types.h"
 #include "object/sv-digging-types.h"
 #include "object/sv-other-types.h"
+#include "object/sv-lite-types.h"
 #include "object/sv-potion-types.h"
 #include "object/sv-protector-types.h"
 #include "object/sv-ring-types.h"
index bfe7608..b72098c 100644 (file)
@@ -2,6 +2,7 @@
 #include "object/lite-processor.h"
 #include "object/object-ego.h"
 #include "object/object-hook.h"
+#include "object/sv-lite-types.h"
 #include "player/player-move.h"
 #include "world/world.h"
 
index 57e0834..9135994 100644 (file)
@@ -22,6 +22,7 @@
 #include "object/object-hook.h"
 #include "object/object-flavor.h"
 #include "object/special-object-flags.h"
+#include "object/sv-lite-types.h"
 #include "grid/trap.h"
 #include "combat/snipe.h"
 #include "io/files-util.h"
index aa1f9a2..0e5bdcc 100644 (file)
@@ -6,6 +6,7 @@
 #include "object/object-kind.h"
 #include "object/special-object-flags.h"
 #include "object/sv-armor-types.h"
+#include "object/sv-lite-types.h"
 #include "object/sv-other-types.h"
 #include "object/sv-protector-types.h"
 #include "object/sv-weapon-types.h"
index a6b3ff2..58919dd 100644 (file)
@@ -25,6 +25,7 @@
 #include "object/object-flavor.h"
 #include "object/object-hook.h"
 #include "object/special-object-flags.h"
+#include "object/sv-lite-types.h"
 #include "object/sv-other-types.h"
 #include "object/sv-ring-types.h"
 #include "object/sv-weapon-types.h"
index b5c2ac7..b3245ae 100644 (file)
@@ -113,18 +113,6 @@ extern void torch_flags(object_type *o_ptr, BIT_FLAGS *flgs);
 extern void torch_dice(object_type *o_ptr, DICE_NUMBER *dd, DICE_SID *ds);
 extern void torch_lost_fuel(object_type *o_ptr);
 
-/* The sval codes for TV_LITE */
-#define SV_LITE_TORCH                    0
-#define SV_LITE_LANTERN                  1
-#define SV_LITE_FEANOR                   2
-#define SV_LITE_EDISON                   3
-#define SV_LITE_GALADRIEL                4
-#define SV_LITE_ELENDIL                  5
-#define SV_LITE_JUDGE                    6
-#define SV_LITE_LORE                     7
-#define SV_LITE_PALANTIR                 8
-#define SV_LITE_FLY_STONE                9
-
 /* The "sval" codes for TV_AMULET */
 #define SV_AMULET_DOOM                   0
 #define SV_AMULET_TELEPORT               1
index eb1583a..70b0844 100644 (file)
@@ -36,6 +36,7 @@
 #include "object/special-object-flags.h"
 #include "object/sv-armor-types.h"
 #include "object/sv-bow-types.h"
+#include "object/sv-lite-types.h"
 #include "object/sv-other-types.h"
 #include "object/sv-protector-types.h"
 #include "object/sv-ring-types.h"
diff --git a/src/object/sv-lite-types.h b/src/object/sv-lite-types.h
new file mode 100644 (file)
index 0000000..1339b6c
--- /dev/null
@@ -0,0 +1,15 @@
+#pragma once
+
+/* The sval codes for TV_LITE */
+typedef enum sv_lite_type {
+       SV_LITE_TORCH = 0,
+    SV_LITE_LANTERN = 1,
+    SV_LITE_FEANOR = 2,
+    SV_LITE_EDISON = 3,
+    SV_LITE_GALADRIEL = 4,
+    SV_LITE_ELENDIL = 5,
+    SV_LITE_JUDGE = 6,
+    SV_LITE_LORE = 7,
+    SV_LITE_PALANTIR = 8,
+    SV_LITE_FLY_STONE = 9,
+} sv_lite_type;
index 76778c2..e47a74a 100644 (file)
@@ -26,6 +26,7 @@
 #include "object/object-hook.h"
 #include "object/object-ego.h"
 #include "object/special-object-flags.h"
+#include "object/sv-lite-types.h"
 #include "object/sv-weapon-types.h"
 #include "monster/monster.h"
 #include "monster/monster-status.h"
index 3ca3b03..57553d1 100644 (file)
@@ -16,6 +16,7 @@
 #include "object/object-flavor.h"
 #include "object/object-ego.h"
 #include "object/special-object-flags.h"
+#include "object/sv-lite-types.h"
 #include "object/sv-protector-types.h"
 #include "object/sv-weapon-types.h"
 #include "player/player-damage.h"
index 8f2be78..ae7267f 100644 (file)
@@ -6,6 +6,7 @@
 #include "object/object-kind.h"
 #include "object/tr-types.h"
 #include "object/special-object-flags.h"
+#include "object/sv-lite-types.h"
 #include "object/sv-potion-types.h"
 #include "object/sv-weapon-types.h"