Hengband  2.2.1
object-hook.h
[詳解]
1 
2 extern bool item_tester_hook_convertible(object_type *o_ptr);
3 extern bool item_tester_hook_recharge(object_type *o_ptr);
6 extern bool item_tester_hook_ammo(object_type *o_ptr);
8 extern bool item_tester_hook_boomerang(object_type *o_ptr);
9 extern bool item_tester_hook_eatable(object_type *o_ptr);
10 extern bool item_tester_hook_mochikae(object_type *o_ptr);
11 extern bool item_tester_hook_activate(object_type *o_ptr);
12 extern bool item_tester_hook_wear(object_type *o_ptr);
13 extern bool item_tester_hook_use(object_type *o_ptr);
14 extern bool item_tester_hook_quaff(object_type *o_ptr);
15 extern bool item_tester_hook_readable(object_type *o_ptr);
16 extern bool item_tester_hook_melee_ammo(object_type *o_ptr);
18 extern bool item_tester_hook_cursed(object_type *o_ptr);
20 extern bool item_tester_hook_identify(object_type *o_ptr);
24 extern bool item_tester_hook_recharge(object_type *o_ptr);
25 
26 extern bool item_tester_learn_spell(object_type *o_ptr);
27 extern bool item_tester_high_level_book(object_type *o_ptr);
28 extern bool item_tester_refill_lantern(object_type *o_ptr);
29 
30 extern bool object_is_potion(object_type *o_ptr);
31 extern bool object_is_shoukinkubi(object_type *o_ptr);
32 extern bool object_is_favorite(object_type *o_ptr);
33 extern bool object_is_rare(object_type *o_ptr);
34 extern bool object_is_weapon(object_type *o_ptr);
35 extern bool object_is_weapon_ammo(object_type *o_ptr);
36 extern bool object_is_ammo(object_type *o_ptr);
37 extern bool object_is_armour(object_type *o_ptr);
38 extern bool object_is_weapon_armour_ammo(object_type *o_ptr);
39 extern bool object_is_melee_weapon(object_type *o_ptr);
40 extern bool object_is_wearable(object_type *o_ptr);
41 extern bool object_is_equipment(object_type *o_ptr);
42 extern bool object_refuse_enchant_weapon(object_type *o_ptr);
43 extern bool object_allow_enchant_weapon(object_type *o_ptr);
45 extern bool object_is_smith(object_type *o_ptr);
46 extern bool object_is_artifact(object_type *o_ptr);
47 extern bool object_is_random_artifact(object_type *o_ptr);
48 extern bool object_is_nameless(object_type *o_ptr);
50 extern bool object_can_refill_torch(object_type *o_ptr);
51 extern bool can_player_destroy_object(object_type *o_ptr);
52 extern bool object_is_quest_target(object_type *o_ptr);
53 
54 /*
55  * Determine if a given p_ptr->inventory_list item is "aware"
56  */
57 #define object_is_aware(T) (k_info[(T)->k_idx].aware)
58 
59  /*
60  * Determine if a given p_ptr->inventory_list item is "tried"
61  */
62 #define object_is_tried(T) (k_info[(T)->k_idx].tried)
63 
64  /*
65  * Determine if a given p_ptr->inventory_list item is "known"
66  * Test One -- Check for special "known" tag
67  * Test Two -- Check for "Easy Know" + "Aware"
68  */
69 #define object_is_known(T) (((T)->ident & (IDENT_KNOWN)) || (k_info[(T)->k_idx].easy_know && k_info[(T)->k_idx].aware))
70 
71 #define OBJECT_IS_VALID(T) ((T)->k_idx != 0)
72 
73 #define OBJECT_IS_HELD_MONSTER(T) ((T)->held_m_idx != 0)
74 
75 /*
76  * Artifacts use the "name1" field
77  */
78 #define object_is_fixed_artifact(T) ((T)->name1 ? TRUE : FALSE)
79 
80 /*
81  * Ego-Items use the "name2" field
82  */
83 #define object_is_ego(T) ((T)->name2 ? TRUE : FALSE)
84 
85 /*
86  * Broken items.
87  */
88 #define object_is_broken(T) ((T)->ident & (IDENT_BROKEN))
89 
90 /*
91  * Cursed items.
92  */
93 #define object_is_cursed(T) ((T)->curse_flags)
94 
bool object_is_equipment(object_type *o_ptr)
オブジェクトが装備品であるかを返す(object_is_wearableに矢弾を含む) / Equipment including all wearable objects and ammo
Definition: object-hook.c:778
bool item_tester_hook_activate(object_type *o_ptr)
オブジェクトをプレイヤーが魔道具として発動できるかを判定する / Hook to determine if an object is activatable
Definition: object-hook.c:175
bool item_tester_hook_melee_weapon(object_type *o_ptr)
オブジェクトが右手か左手に装備できる武器かどうかの判定
Definition: object-hook.c:58
bool object_is_weapon_armour_ammo(object_type *o_ptr)
オブジェクトが武器、防具、矢弾として使用できるかを返す / Check if an object is weapon, armour or ammo
Definition: object-hook.c:739
bool object_is_quest_target(object_type *o_ptr)
オブジェクトがクエストの達成目的か否かを返す。
Definition: object-hook.c:950
Definition: object.h:189
bool item_tester_okay(object_type *o_ptr, OBJECT_TYPE_VALUE tval)
アイテムがitem_tester_hookグローバル関数ポインタの条件を満たしているかを返す汎用関数 Check an item against the item tester info
Definition: object-hook.c:988
bool object_is_weapon(object_type *o_ptr)
オブジェクトが武器として装備できるかどうかを返す / Check if an object is weapon (including bows and ammo)
Definition: object-hook.c:689
bool item_tester_hook_identify(object_type *o_ptr)
アイテムが鑑定済みかを判定する /
Definition: object-hook.c:374
bool item_tester_hook_identify_weapon_armour(object_type *o_ptr)
アイテムが鑑定済みの武器防具かを判定する /
Definition: object-hook.c:384
bool item_tester_hook_cursed(object_type *o_ptr)
呪術領域の各処理に使える呪われた装備かどうかを返す。 / An "item_tester_hook" for offer
Definition: object-hook.c:344
bool item_tester_hook_quaff(object_type *o_ptr)
オブジェクトをプレイヤーが飲むことができるかを判定する / Hook to determine if an object can be quaffed
Definition: object-hook.c:265
bool item_tester_hook_weapon_except_bow(object_type *o_ptr)
呪術領域の武器呪縛の対象にできる武器かどうかを返す。 / An "item_tester_hook" for offer
Definition: object-hook.c:323
bool item_tester_hook_recharge(object_type *o_ptr)
魔力充填が可能なアイテムかどうか判定する / Hook for "get_item()".
Definition: object-hook.c:420
bool object_allow_enchant_weapon(object_type *o_ptr)
オブジェクトが強化可能武器であるかを返す / Check if an object is weapon (including bows and ammo) and allows enchantment
Definition: object-hook.c:805
bool object_can_refill_torch(object_type *o_ptr)
オブジェクトが松明に束ねられるかどうかを判定する An "item_tester_hook" for refilling torches
Definition: object-hook.c:900
bool item_tester_hook_readable(object_type *o_ptr)
オブジェクトをプレイヤーが読むことができるかを判定する / Hook to determine if an object is readable
Definition: object-hook.c:284
bool item_tester_hook_mochikae(object_type *o_ptr)
オブジェクトがどちらの手にも装備できる武器かどうかの判定
Definition: object-hook.c:160
bool item_tester_hook_broken_weapon(object_type *o_ptr)
修復対象となる壊れた武器かを判定する。 / Hook to specify "broken weapon"
Definition: object-hook.c:91
bool item_tester_hook_convertible(object_type *o_ptr)
対象のアイテムが矢やクロスボウの矢の材料になるかを返す。/ Hook to determine if an object is contertible in an arrow/bolt
Definition: object-hook.c:22
bool item_tester_learn_spell(object_type *o_ptr)
オブジェクトがプレイヤーが使用可能な魔道書かどうかを判定する
Definition: object-hook.c:439
bool item_tester_hook_nameless_weapon_armour(object_type *o_ptr)
アイテムが並の価値のアイテムかどうか判定する / Check if an object is nameless weapon or armour
Definition: object-hook.c:356
bool object_is_rare(object_type *o_ptr)
オブジェクトがレアアイテムかどうかを返す / Rare weapons/aromors including Blade of Chaos, Dragon armors,...
Definition: object-hook.c:623
bool object_refuse_enchant_weapon(object_type *o_ptr)
オブジェクトが強化不能武器であるかを返す / Poison needle can not be enchanted
Definition: object-hook.c:791
bool item_tester_hook_orthodox_melee_weapons(object_type *o_ptr)
武器匠の「武器」鑑定対象になるかを判定する。/ Hook to specify "weapon"
Definition: object-hook.c:34
OBJECT_TYPE_VALUE tval
ベースアイテムのメイン種別ID
Definition: bldg.c:1762
bool item_tester_hook_identify_fully(object_type *o_ptr)
アイテムが*鑑定*済みかを判定する /
Definition: object-hook.c:396
bool item_tester_hook_eatable(object_type *o_ptr)
オブジェクトをプレイヤーが食べることができるかを判定する / Hook to determine if an object is eatable
Definition: object-hook.c:122
bool object_is_nameless(object_type *o_ptr)
オブジェクトが通常のアイテム(アーティファクト、エゴ、鍛冶師エッセンス付加いずれでもない)かを返す / Check if an object is neither artifact,...
Definition: object-hook.c:873
bool object_is_smith(object_type *o_ptr)
オブジェクトが鍛冶師のエッセンス付加済みかを返す / Check if an object is made by a smith's special ability
Definition: object-hook.c:833
bool object_is_melee_weapon(object_type *o_ptr)
オブジェクトが近接武器として装備できるかを返す / Melee weapons
Definition: object-hook.c:752
bool object_is_ammo(object_type *o_ptr)
オブジェクトが矢弾として使用できるかどうかを返す / Check if an object is ammo
Definition: object-hook.c:715
bool object_is_random_artifact(object_type *o_ptr)
オブジェクトがランダムアーティファクトかを返す / Check if an object is random artifact
Definition: object-hook.c:860
bool item_tester_refill_lantern(object_type *o_ptr)
オブジェクトがランタンの燃料になるかどうかを判定する An "item_tester_hook" for refilling lanterns
Definition: object-hook.c:497
s32b OBJECT_TYPE_VALUE
ゲーム中のアイテム主分類の型定義
Definition: h-type.h:202
bool object_is_potion(object_type *o_ptr)
オブジェクトが薬であるかを返す
Definition: object-hook.c:516
bool item_tester_hook_wear(object_type *o_ptr)
オブジェクトを防具として装備できるかの判定 / The "wearable" tester
Definition: object-hook.c:194
bool item_tester_hook_melee_ammo(object_type *o_ptr)
エッセンスの付加可能な武器や矢弾かを返す
Definition: object-hook.c:296
bool item_tester_hook_use(object_type *o_ptr)
オブジェクトをプレイヤーが簡易使用コマンドで利用できるかを判定する / Hook to determine if an object is useable
Definition: object-hook.c:212
bool object_is_wearable(object_type *o_ptr)
オブジェクトが装備可能であるかを返す / Wearable including all weapon, all armour, bow, light source,...
Definition: object-hook.c:765
bool item_tester_hook_identify_fully_weapon_armour(object_type *o_ptr)
アイテムが*鑑定*済みの武器防具かを判定する /
Definition: object-hook.c:406
bool item_tester_hook_ammo(object_type *o_ptr)
武器匠の「矢弾」鑑定対象になるかを判定する。/ Hook to specify "weapon"
Definition: object-hook.c:71
bool object_is_armour(object_type *o_ptr)
オブジェクトが防具として装備できるかどうかを返す / Check if an object is armour
Definition: object-hook.c:727
bool object_is_favorite(object_type *o_ptr)
オブジェクトがプレイヤーの職業に応じた適正武器か否かを返す / Favorite weapons
Definition: object-hook.c:557
bool item_tester_hook_boomerang(object_type *o_ptr)
オブジェクトが投射可能な武器かどうかを返す。
Definition: object-hook.c:110
bool object_allow_enchant_melee_weapon(object_type *o_ptr)
オブジェクトが強化可能な近接武器であるかを返す / Check if an object is melee weapon and allows enchantment
Definition: object-hook.c:819
bool object_is_artifact(object_type *o_ptr)
オブジェクトがアーティファクトかを返す / Check if an object is artifact
Definition: object-hook.c:846
bool object_is_weapon_ammo(object_type *o_ptr)
オブジェクトが武器や矢弾として使用できるかを返す / Check if an object is weapon (including bows and ammo) Rare weapons/aromor...
Definition: object-hook.c:703
bool object_is_shoukinkubi(object_type *o_ptr)
オブジェクトが賞金首の報酬対象になるかを返す
Definition: object-hook.c:527
bool item_tester_high_level_book(object_type *o_ptr)
オブジェクトが高位の魔法書かどうかを判定する
Definition: object-hook.c:468
bool object_allow_two_hands_wielding(object_type *o_ptr)
オブジェクトが両手持ち可能な武器かを返す / Check if an object is melee weapon and allows wielding with two-hands
Definition: object-hook.c:887
bool can_player_destroy_object(object_type *o_ptr)
破壊可能なアイテムかを返す / Determines whether an object can be destroyed, and makes fake inscription.
Definition: object-hook.c:917