• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision9030ef5447095d6b661d01d4168cac8d62c7f34c (tree)
Time2019-06-06 22:53:46
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 CEM_* を monster.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -98,13 +98,6 @@
9898 #define ROW_MAP 0
9999 #define COL_MAP 12
100100
101-/*
102- * Bit flags for the *_can_enter() and monster_can_cross_terrain()
103- */
104-#define CEM_RIDING 0x0001
105-#define CEM_P_CAN_ENTER_PATTERN 0x0002
106-
107-
108101 #define OBJ_GOLD_LIST 480 /* First "gold" entry */
109102 #define MAX_GOLD 18 /* Number of "gold" entries */
110103
--- a/src/monster.h
+++ b/src/monster.h
@@ -424,8 +424,15 @@ extern void set_friendly(monster_type *m_ptr);
424424 extern void set_pet(monster_type *m_ptr);
425425 extern void set_hostile(monster_type *m_ptr);
426426 extern void anger_monster(monster_type *m_ptr);
427+
428+/*
429+ * Bit flags for the *_can_enter() and monster_can_cross_terrain()
430+ */
431+#define CEM_RIDING 0x0001
432+#define CEM_P_CAN_ENTER_PATTERN 0x0002
427433 extern bool monster_can_cross_terrain(FEAT_IDX feat, monster_race *r_ptr, BIT_FLAGS16 mode);
428434 extern bool monster_can_enter(POSITION y, POSITION x, monster_race *r_ptr, BIT_FLAGS16 mode);
435+
429436 extern bool are_enemies(monster_type *m_ptr1, monster_type *m_ptr2);
430437 extern bool monster_has_hostile_align(monster_type *m_ptr, int pa_good, int pa_evil, monster_race *r_ptr);
431438 extern void dice_to_string(int base_damage, int dice_num, int dice_side, int dice_mult, int dice_div, char* msg);
Show on old repository browser