22#ifndef ULTIMA4_GAME_ITEM_H
23#define ULTIMA4_GAME_ITEM_H
25#include "ultima/ultima4/core/types.h"
26#include "common/str.h"
39 SC_REAGENTDELAY = 0x04
43typedef bool (Items::*IsInInventoryProc)(
int item);
44typedef void (Items::*InventoryActionProc)(
int item);
47#ifndef NO_CXX11_ALIGNAS
52 const char *_shortName;
53 const char *_locationLabel;
54 IsInInventoryProc _isItemInInventory;
55 InventoryActionProc _putItemInInventory;
56 InventoryActionProc _useItem;
61typedef void (*DestroyAllCreaturesCallback)();
68 DestroyAllCreaturesCallback destroyAllCreaturesCallback;
72 bool isRuneInInventory(
int virt);
73 void putRuneInInventory(
int virt);
74 bool isStoneInInventory(
int virt);
75 void putStoneInInventory(
int virt);
76 bool isItemInInventory(
int item);
77 bool isSkullInInventory(
int item);
78 void putItemInInventory(
int item);
83 void useBBC(
int item);
88 void useHorn(
int item);
93 void useWheel(
int item);
98 void useSkull(
int item);
103 void useStone(
int item);
104 void useKey(
int item);
105 bool isMysticInInventory(
int mystic);
106 void putMysticInInventory(
int mystic);
107 bool isWeaponInInventory(
int weapon);
108 void putWeaponInInventory(
int weapon);
109 void useTelescope(
int notused);
110 bool isReagentInInventory(
int reag);
111 void putReagentInInventory(
int reag);
121 bool itemConditionsMet(
byte conditions);
126 void setDestroyAllCreaturesCallback(DestroyAllCreaturesCallback callback);
145extern Items *g_items;
void itemUse(const Common::String &shortName)
const ItemLocation * itemAtLocation(const Map *map, const Coords &coords)
static bool isAbyssOpened(const Portal *p)