<ClInclude Include="..\..\src\autopick\autopick-util.h" />\r
<ClInclude Include="..\..\src\autopick\autopick.h" />\r
<ClInclude Include="..\..\src\object\death-scythe.h" />\r
+ <ClInclude Include="..\..\src\object\item-use-flags.h" />\r
<ClInclude Include="..\..\src\object\object-mark-types.h" />\r
<ClInclude Include="..\..\src\object\object-util.h" />\r
<ClInclude Include="..\..\src\object\old-ego-extra-values.h" />\r
<ClInclude Include="..\..\src\object\object1.h">
<Filter>object</Filter>
</ClInclude>
+ <ClInclude Include="..\..\src\object\item-use-flags.h">
+ <Filter>object</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\..\src\wall.bmp" />
object/tr-types.h object/trc-types.h object/tval-type.h \
object/old-ego-extra-values.h object/special-object-flags.h \
object/object-mark-types.h object/object-util.h \
+ object/item-use-flags.h \
\
inventory/simple-appraiser.c inventory/simple-appraiser.h \
inventory/inventory-curse.c inventory/inventory-curse.h \
#include "autopick/autopick-keys-table.h"
#include "autopick/autopick-methods-table.h"
#include "autopick/autopick-key-flag-process.h"
+#include "object/item-use-flags.h"
#include "object/object-ego.h"
#include "object/object-kind.h"
#include "object/object-flavor.h"
#include "autopick/autopick-dirty-flags.h"
#include "autopick/autopick-entry.h"
#include "autopick/autopick-matcher.h"
+#include "object/item-use-flags.h"
#include "object/object-flavor.h"
#include "term/gameterm.h"
#include "inventory/player-inventory.h"
#include "object/object-hook.h"
#include "core/sort.h"
#include "object/artifact.h"
+#include "object/item-use-flags.h"
#include "player/avatar.h"
#include "spell/spells-summon.h"
#include "spell/spells-status.h"
#include "main/sound-definitions-table.h"
#include "monster/monster-status.h"
#include "object/artifact.h"
+#include "object/item-use-flags.h"
#include "player/avatar.h"
#include "player/player-damage.h"
#include "player/player-effects.h"
#include "player/player-effects.h"
#include "player/player-personalities-table.h"
#include "inventory/player-inventory.h"
+#include "object/item-use-flags.h"
#include "object/object-kind.h"
#include "object/object-broken.h"
#include "object/object-flavor.h"
#include "player/player-class.h"
#include "inventory/player-inventory.h"
#include "floor/floor.h"
+#include "object/item-use-flags.h"
#include "object/object-kind.h"
#include "object/special-object-flags.h"
#include "view/display-main-window.h"
#include "player/player-effects.h"
#include "inventory/player-inventory.h"
#include "spell/technic-info-table.h"
+#include "object/item-use-flags.h"
#include "cmd-basic.h"
#include "cmd-spell.h"
#include "cmd-pet.h"
#include "cmd-basic.h"
+#include "object/item-use-flags.h"
#include "object/object-flavor.h"
#include "object/object-hook.h"
#include "object/object-ego.h"
#include "inventory/player-inventory.h"
#include "realm/realm-hex.h"
#include "spell/spells-floor.h"
+#include "object/item-use-flags.h"
#include "object/object-broken.h"
#include "cmd-basic.h"
#include "floor/floor.h"
#include "util/util.h"
#include "main/sound-definitions-table.h"
+#include "object/item-use-flags.h"
#include "object/object-flavor.h"
#include "object/object-hook.h"
#include "object/artifact.h"
#include "util/util.h"
#include "term/gameterm.h"
+#include "object/item-use-flags.h"
#include "object/object-flavor.h"
#include "object/object-hook.h"
#include "object/object-ego.h"
#include "locale/japanese.h"
#include "spell/spells-util.h"
#include "spell/spells-execution.h"
+#include "object/item-use-flags.h"
/*!
* 魔法領域フラグ管理テーブル /
#include "object/object-hook.h"
#include "cmd-basic.h"
#include "floor/floor.h"
+#include "object/item-use-flags.h"
#include "object/object-kind.h"
#include "object/special-object-flags.h"
#include "view/display-main-window.h"
#include "player/player-effects.h"
#include "player/player-class.h"
#include "inventory/player-inventory.h"
+#include "object/item-use-flags.h"
#include "object/object-kind.h"
#include "object/object-hook.h"
#include "object/special-object-flags.h"
#include "player/player-effects.h"
#include "player/player-class.h"
#include "inventory/player-inventory.h"
+#include "object/item-use-flags.h"
#include "object/object-kind.h"
#include "object/object-hook.h"
#include "object/special-object-flags.h"
#include "inventory/player-inventory.h"
#include "term/gameterm.h"
+#include "object/item-use-flags.h"
#include "object/object1.h"
#include "object/object-kind.h"
#include "object/object-flavor.h"
#include "player/player-effects.h"
#include "core/stuff-handler.h"
#include "object/tr-types.h"
+#include "object/item-use-flags.h"
/*!
* @brief 修復材料のオブジェクトから修復対象に特性を移植する。
#include "market/building-util.h"
#include "core/stuff-handler.h"
#include "object/tr-types.h"
+#include "object/item-use-flags.h"
/*!
* @brief 攻撃時スレイによるダメージ期待値修正計算 / critical happens at i / 10000
#include "system/angband.h"
#include "market/building-enchanter.h"
+#include "object/item-use-flags.h"
#include "object/object-flavor.h"
#include "spell/spells-object.h"
#include "market/building-util.h"
#include "system/angband.h"
#include "market/building-recharger.h"
+#include "object/item-use-flags.h"
#include "object/object-hook.h"
#include "object/object-kind.h"
#include "object/object-flavor.h"
--- /dev/null
+#pragma once
+
+/*
+ * get_item()関数でアイテムの選択を行うフラグ / Bit flags for the "get_item" function
+ */
+typedef enum item_use_flag {
+ USE_EQUIP = 0x01, /*!< アイテム表示/選択範囲: 装備品からの選択を許可する / Allow equip items */
+ USE_INVEN = 0x02, /*!< アイテム表示/選択範囲: 所持品からの選択を許可する / Allow inven items */
+ USE_FLOOR = 0x04, /*!< アイテム表示/選択範囲: 床下のアイテムからの選択を許可する / Allow floor items */
+ USE_FORCE = 0x08, /*!< 特殊: wキーで錬気術への切り替えを許可する */
+ IGNORE_BOTHHAND_SLOT = 0x10, /*!< アイテム表示/選択範囲: 両手持ちスロットを選択に含めない */
+ USE_FULL = 0x20, /*!< アイテム表示/選択範囲: 空欄まですべて表示する*/
+} item_use_flag;
extern bool check_book_realm(player_type *owner_ptr, const tval_type book_tval, const OBJECT_SUBTYPE_VALUE book_sval);
-/*
- * get_item()関数でアイテムの選択を行うフラグ / Bit flags for the "get_item" function
- */
-#define USE_EQUIP 0x01 /*!< アイテム表示/選択範囲: 装備品からの選択を許可する / Allow equip items */
-#define USE_INVEN 0x02 /*!< アイテム表示/選択範囲: 所持品からの選択を許可する / Allow inven items */
-#define USE_FLOOR 0x04 /*!< アイテム表示/選択範囲: 床下のアイテムからの選択を許可する / Allow floor items */
-#define USE_FORCE 0x08 /*!< 特殊: wキーで錬気術への切り替えを許可する */
-#define IGNORE_BOTHHAND_SLOT 0x10 /*!< アイテム表示/選択範囲: 両手持ちスロットを選択に含めない */
-#define USE_FULL 0x20 /*!< アイテム表示/選択範囲: 空欄まですべて表示する*/
-
#define REF_ITEM(P_PTR, FLOOR_PTR, ID) ((ID >= 0 ? &(P_PTR)->inventory_list[ID] : &(FLOOR_PTR)->o_list[0 - item]))
extern int bow_tval_ammo(object_type *o_ptr);
#include "world/world.h"
#include "floor/floor-town.h"
#include "inventory/player-inventory.h"
+#include "object/item-use-flags.h"
#include "object/object-flavor.h"
#include "store/store-util.h"
#include "store/store.h"
#include "spell/spells3.h"
#include "object/tr-types.h"
#include "object/trc-types.h"
+#include "object/item-use-flags.h"
#define MAX_KEEP 4 /*!<呪術の最大詠唱数 */
#include "grid/grid.h"
#include "spell/spells3.h"
#include "spell/spells-object.h"
+#include "object/item-use-flags.h"
#include "object/object-boost.h"
#include "object/object-hook.h"
#include "object/object-flavor.h"
#include "floor/floor.h"
#include "effect/spells-effect-util.h"
#include "spell/spells2.h"
+#include "object/item-use-flags.h"
#include "object/object-hook.h"
/*!
#include "spell/spells-diceroll.h"
#include "realm/realm-hex.h"
#include "autopick/autopick.h"
+#include "object/item-use-flags.h"
#include "object/object-flavor.h"
#include "object/object-hook.h"
#include "object/object-mark-types.h"
#include "dungeon/dungeon.h"
#include "effect/effect-characteristics.h"
#include "floor/floor-town.h"
+#include "object/item-use-flags.h"
#include "object/object-boost.h"
#include "object/object-flavor.h"
#include "object/object-hook.h"
#include "player/player-status.h"
#include "player/player-class.h"
#include "inventory/player-inventory.h"
+#include "object/item-use-flags.h"
#include "object/object-flavor.h"
#include "object/object-hook.h"
#include "floor/floor-events.h"
#include "spell/spells3.h"
#include "spell/spells-detection.h"
#include "player/player-races-table.h"
+#include "object/item-use-flags.h"
#include "object/trc-types.h"
#define NUM_O_SET 8