OSDN Git Service

1fd5d27b5412341170050c40720ca537417508e7
[hengband/hengband.git] / src / monster / monster1.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include "system/monster-type-definition.h"
5
6 concptr extract_note_dies(MONRACE_IDX r_idx);
7 void monster_death(player_type *player_ptr, MONSTER_IDX m_idx, bool drop_item);
8 void set_friendly(monster_type *m_ptr);
9 void set_pet(player_type *player_ptr, monster_type *m_ptr);
10 void set_hostile(player_type *player_ptr, monster_type *m_ptr);
11 void anger_monster(player_type *player_ptr, monster_type *m_ptr);
12
13 /*
14  * Bit flags for the *_can_enter() and monster_can_cross_terrain()
15  */
16 #define CEM_RIDING 0x0001
17 #define CEM_P_CAN_ENTER_PATTERN 0x0002
18 bool monster_can_cross_terrain(player_type *player_ptr, FEAT_IDX feat, monster_race *r_ptr, BIT_FLAGS16 mode);
19 bool monster_can_enter(player_type *player_ptr, POSITION y, POSITION x, monster_race *r_ptr, BIT_FLAGS16 mode);
20 bool are_enemies(player_type *player_ptr, monster_type *m_ptr1, monster_type *m_ptr2);
21 bool monster_has_hostile_align(player_type *player_ptr, monster_type *m_ptr, int pa_good, int pa_evil, monster_race *r_ptr);
22 concptr look_mon_desc(monster_type *m_ptr, BIT_FLAGS mode);
23 bool is_original_ap_and_seen(player_type *player_ptr, monster_type *m_ptr);