OSDN Git Service

[Refactor] #40571 Reshaped targetinc.c
[hengband/hengband.git] / src / io / targeting.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 /*
6  * target_set用関数の利用用途フラグ / Bit flags for the "target_set" function
7  */
8 #define TARGET_KILL 0x01 /*!< モンスターへの狙いをつける(視界内モンスターのみクエリ対象) / Target monsters */
9 #define TARGET_LOOK 0x02 /*!< "L"ookコマンド向けの既存情報確認向け(全ての有為な情報をクエリ対象) / Describe grid fully */
10 #define TARGET_XTRA 0x04 /*!< 現在未使用 / Currently unused flag */
11 #define TARGET_GRID 0x08 /*!< 全てのマス対象にする(現在未使用) / Select from all grids */
12
13 extern MONSTER_IDX target_who;
14 extern POSITION target_col;
15 extern POSITION target_row;
16
17 void panel_bounds_center(void);
18 void verify_panel(player_type *creature_ptr);
19 bool target_able(player_type *creature_ptr, MONSTER_IDX m_idx);
20 bool target_okay(player_type *creature_ptr);
21 bool target_set(player_type *creature_ptr, BIT_FLAGS mode);
22 void target_set_prepare_look(player_type *creature_ptr);
23 bool get_aim_dir(player_type *creature_ptr, DIRECTION *dp);
24 bool get_hack_dir(player_type *creature_ptr, DIRECTION *dp);
25 bool get_direction(player_type *creature_ptr, DIRECTION *dp, bool allow_under, bool with_steed);
26 bool get_rep_dir(player_type *creature_ptr, DIRECTION *dp, bool under);
27 bool tgt_pt(player_type *creature_ptr, POSITION *x, POSITION *y);
28 int get_max_range(player_type *creature_ptr);