OSDN Git Service

Merge pull request #3569 from sikabane-works/release/3.0.0.88-alpha
[hengbandforosx/hengbandosx.git] / src / monster / monster-info.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include <string>
5
6 /*
7  * Bit flags for the *_can_enter() and monster_can_cross_terrain()
8  */
9 #define CEM_RIDING 0x0001
10 #define CEM_P_CAN_ENTER_PATTERN 0x0002
11 enum class MonsterRaceId : int16_t;
12 class MonsterRaceInfo;
13 class MonsterEntity;
14 class PlayerType;
15 bool monster_can_cross_terrain(PlayerType *player_ptr, FEAT_IDX feat, MonsterRaceInfo *r_ptr, BIT_FLAGS16 mode);
16 bool monster_can_enter(PlayerType *player_ptr, POSITION y, POSITION x, MonsterRaceInfo *r_ptr, BIT_FLAGS16 mode);
17 bool are_enemies(PlayerType *player_ptr, const MonsterEntity &m1_ref, const MonsterEntity &m2_ref);
18 bool monster_has_hostile_align(PlayerType *player_ptr, MonsterEntity *m_ptr, int pa_good, int pa_evil, MonsterRaceInfo *r_ptr);
19 bool is_original_ap_and_seen(PlayerType *player_ptr, const MonsterEntity *m_ptr);
20 std::string monster_name(PlayerType *player_ptr, MONSTER_IDX m_idx);