22 #ifndef ULTIMA4_GAME_ITEM_H 23 #define ULTIMA4_GAME_ITEM_H 25 #include "ultima/ultima4/core/types.h" 26 #include "common/str.h" 35 enum SearchCondition {
39 SC_REAGENTDELAY = 0x04
43 typedef bool (Items::*IsInInventoryProc)(
int item);
44 typedef void (Items::*InventoryActionProc)(
int item);
48 const char *_shortName;
49 const char *_locationLabel;
50 IsInInventoryProc _isItemInInventory;
51 InventoryActionProc _putItemInInventory;
52 InventoryActionProc _useItem;
57 typedef void (*DestroyAllCreaturesCallback)();
64 DestroyAllCreaturesCallback destroyAllCreaturesCallback;
68 bool isRuneInInventory(
int virt);
69 void putRuneInInventory(
int virt);
70 bool isStoneInInventory(
int virt);
71 void putStoneInInventory(
int virt);
72 bool isItemInInventory(
int item);
73 bool isSkullInInventory(
int item);
74 void putItemInInventory(
int item);
79 void useBBC(
int item);
84 void useHorn(
int item);
89 void useWheel(
int item);
94 void useSkull(
int item);
99 void useStone(
int item);
100 void useKey(
int item);
101 bool isMysticInInventory(
int mystic);
102 void putMysticInInventory(
int mystic);
103 bool isWeaponInInventory(
int weapon);
104 void putWeaponInInventory(
int weapon);
105 void useTelescope(
int notused);
106 bool isReagentInInventory(
int reag);
107 void putReagentInInventory(
int reag);
117 bool itemConditionsMet(byte conditions);
122 void setDestroyAllCreaturesCallback(DestroyAllCreaturesCallback callback);
138 static bool isAbyssOpened(
const Portal *p);
141 extern Items *g_items;
Definition: detection.h:27