• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision6bc923bbc86e1353a031b4d0e681d95678c91962 (tree)
Time2019-04-14 21:40:03
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 MPE_* を player-move.h へ移動。

Change Summary

Incremental Difference

--- a/src/cmd-pet.c
+++ b/src/cmd-pet.c
@@ -2,6 +2,7 @@
22 #include "floor.h"
33 #include "melee.h"
44 #include "sort.h"
5+#include "player-move.h"
56 #include "player-status.h"
67 #include "object-hook.h"
78 #include "monster.h"
--- a/src/defines.h
+++ b/src/defines.h
@@ -4286,19 +4286,6 @@ extern int PlayerUID;
42864286 #define SKEY_TOP 0xf007
42874287 #define SKEY_BOTTOM 0xf008
42884288
4289-/*
4290- * Bit flags for move_player_effect()
4291- */
4292-#define MPE_STAYING 0x00000001
4293-#define MPE_FORGET_FLOW 0x00000002
4294-#define MPE_HANDLE_STUFF 0x00000004
4295-#define MPE_ENERGY_USE 0x00000008
4296-#define MPE_DONT_PICKUP 0x00000010
4297-#define MPE_DO_PICKUP 0x00000020
4298-#define MPE_BREAK_TRAP 0x00000040
4299-#define MPE_DONT_SWAP_MON 0x00000080
4300-
4301-
43024289 #define MTIMED_CSLEEP 0 /* Monster is sleeping */
43034290 #define MTIMED_FAST 1 /* Monster is temporarily fast */
43044291 #define MTIMED_SLOW 2 /* Monster is temporarily slow */
--- a/src/mind.c
+++ b/src/mind.c
@@ -19,6 +19,7 @@
1919 #include "melee.h"
2020 #include "spells-summon.h"
2121 #include "avatar.h"
22+#include "player-move.h"
2223 #include "player-status.h"
2324 #include "spells-status.h"
2425 #include "cmd-spell.h"
--- a/src/player-move.h
+++ b/src/player-move.h
@@ -12,3 +12,15 @@ extern void disturb(bool stop_search, bool flush_output);
1212 #define PATTERN_TILE_OLD 6
1313 #define PATTERN_TILE_TELEPORT 7
1414 #define PATTERN_TILE_WRECKED 8
15+
16+/*
17+ * Bit flags for move_player_effect()
18+ */
19+#define MPE_STAYING 0x00000001
20+#define MPE_FORGET_FLOW 0x00000002
21+#define MPE_HANDLE_STUFF 0x00000004
22+#define MPE_ENERGY_USE 0x00000008
23+#define MPE_DONT_PICKUP 0x00000010
24+#define MPE_DO_PICKUP 0x00000020
25+#define MPE_BREAK_TRAP 0x00000040
26+#define MPE_DONT_SWAP_MON 0x00000080
--- a/src/realm-hissatsu.c
+++ b/src/realm-hissatsu.c
@@ -5,6 +5,7 @@
55 #include "monsterrace-hook.h"
66 #include "artifact.h"
77 #include "monster.h"
8+#include "player-move.h"
89 #include "player-status.h"
910 #include "feature.h"
1011
--- a/src/spells2.c
+++ b/src/spells2.c
@@ -29,6 +29,7 @@
2929 #include "realm-hex.h"
3030 #include "object-hook.h"
3131 #include "monster-status.h"
32+#include "player-move.h"
3233 #include "player-status.h"
3334
3435 /*!
--- a/src/spells3.c
+++ b/src/spells3.c
@@ -16,6 +16,7 @@
1616 #include "object-boost.h"
1717 #include "object-hook.h"
1818 #include "melee.h"
19+#include "player-move.h"
1920 #include "player-status.h"
2021 #include "spells-summon.h"
2122 #include "quest.h"
Show on old repository browser