OSDN Git Service

e13cfa5ca16e310f15e37b6f6d0cb90a10e3a14a
[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 void roff_top(MONRACE_IDX r_idx);
7 void screen_roff(player_type *player_ptr, MONRACE_IDX r_idx, BIT_FLAGS mode);
8 void display_roff(player_type *player_ptr);
9 void output_monster_spoiler(player_type *player_ptr, MONRACE_IDX r_idx, void (*roff_func)(TERM_COLOR attr, concptr str));
10 concptr extract_note_dies(MONRACE_IDX r_idx);
11 void monster_death(player_type *player_ptr, MONSTER_IDX m_idx, bool drop_item);
12 void set_friendly(monster_type *m_ptr);
13 void set_pet(player_type *player_ptr, monster_type *m_ptr);
14 void set_hostile(player_type *player_ptr, monster_type *m_ptr);
15 void anger_monster(player_type *player_ptr, monster_type *m_ptr);
16
17 /*
18  * Bit flags for the *_can_enter() and monster_can_cross_terrain()
19  */
20 #define CEM_RIDING 0x0001
21 #define CEM_P_CAN_ENTER_PATTERN 0x0002
22 bool monster_can_cross_terrain(player_type *player_ptr, FEAT_IDX feat, monster_race *r_ptr, BIT_FLAGS16 mode);
23 bool monster_can_enter(player_type *player_ptr, POSITION y, POSITION x, monster_race *r_ptr, BIT_FLAGS16 mode);
24 bool are_enemies(player_type *player_ptr, monster_type *m_ptr1, monster_type *m_ptr2);
25 bool monster_has_hostile_align(player_type *player_ptr, monster_type *m_ptr, int pa_good, int pa_evil, monster_race *r_ptr);
26 concptr look_mon_desc(monster_type *m_ptr, BIT_FLAGS mode);
27 bool is_original_ap_and_seen(player_type *player_ptr, monster_type *m_ptr);