OSDN Git Service

[Refactor] #40571 Reshaped targeting.h
authorHourier <hourier@users.sourceforge.jp>
Fri, 24 Jul 2020 04:46:54 +0000 (13:46 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sun, 26 Jul 2020 08:04:20 +0000 (17:04 +0900)
src/io/targeting.h

index b59baa9..9d326ad 100644 (file)
@@ -2,6 +2,14 @@
 
 #include "system/angband.h"
 
+/*
+ * target_set用関数の利用用途フラグ / Bit flags for the "target_set" function
+ */
+#define TARGET_KILL 0x01 /*!< モンスターへの狙いをつける(視界内モンスターのみクエリ対象) / Target monsters */
+#define TARGET_LOOK 0x02 /*!< "L"ookコマンド向けの既存情報確認向け(全ての有為な情報をクエリ対象) / Describe grid fully */
+#define TARGET_XTRA 0x04 /*!< 現在未使用 / Currently unused flag */
+#define TARGET_GRID 0x08 /*!< 全てのマス対象にする(現在未使用) / Select from all grids */
+
 extern MONSTER_IDX target_who;
 extern POSITION target_col;
 extern POSITION target_row;
@@ -10,14 +18,6 @@ void panel_bounds_center(void);
 void verify_panel(player_type *creature_ptr);
 bool target_able(player_type *creature_ptr, MONSTER_IDX m_idx);
 bool target_okay(player_type *creature_ptr);
-
-/*
- * target_set用関数の利用用途フラグ / Bit flags for the "target_set" function
- */
-#define TARGET_KILL     0x01 /*!< モンスターへの狙いをつける(視界内モンスターのみクエリ対象) / Target monsters */
-#define TARGET_LOOK     0x02 /*!< "L"ookコマンド向けの既存情報確認向け(全ての有為な情報をクエリ対象) / Describe grid fully */
-#define TARGET_XTRA     0x04 /*!< 現在未使用 / Currently unused flag */
-#define TARGET_GRID     0x08 /*!< 全てのマス対象にする(現在未使用) / Select from all grids */
 bool target_set(player_type *creature_ptr, BIT_FLAGS mode);
 void target_set_prepare_look(player_type *creature_ptr);
 bool get_aim_dir(player_type *creature_ptr, DIRECTION *dp);