OSDN Git Service

f72bd7c763c584d85f648959ceb2f6f0360d1177
[hengbandforosx/hengbandosx.git] / src / floor / object-scanner.h
1 #pragma once
2
3 #include "object/tval-types.h"
4 #include "system/angband.h"
5
6 /*!
7  * @brief scan_floor_items() の動作を指定するフラグたち。
8  */
9 enum scan_floor_mode {
10     SCAN_FLOOR_ITEM_TESTER = 1U << 0, /*!< item_tester_hook によるフィルタリングを適用する */
11     SCAN_FLOOR_ONLY_MARKED = 1U << 1, /*!< マークされたアイテムのみを対象とする */
12     SCAN_FLOOR_AT_MOST_ONE = 1U << 2, /*!< 高々1つのアイテムしか取得しない */
13 };
14
15 struct player_type;
16 class ItemTester;
17 ITEM_NUMBER scan_floor_items(player_type *player_ptr, OBJECT_IDX *items, POSITION y, POSITION x, BIT_FLAGS mode, const ItemTester& item_tester);
18 COMMAND_CODE show_floor_items(player_type *player_ptr, int target_item, POSITION y, POSITION x, TERM_LEN *min_width, const ItemTester& item_tester);