22 #ifndef TEENAGENT_INVENTORY_H 23 #define TEENAGENT_INVENTORY_H 25 #include "teenagent/surface.h" 26 #include "teenagent/animation.h" 27 #include "common/events.h" 28 #include "common/array.h" 29 #include "teenagent/objects.h" 33 struct InventoryObject;
34 class TeenAgentEngine;
37 const uint8 kNumInventoryItems = 92;
44 kInvItemToolboxFull = 3,
45 kInvItemToolboxHalfEmpty = 4,
49 kInvItemBrokenPaddle = 8,
51 kInvItemFirstFlower = 10,
52 kInvItemSecondFlower = 11,
53 kInvItemFeatherDusterClean = 12,
54 kInvItemChainsaw = 13,
55 kInvItemDrunkenChainsaw = 14,
60 kInvItemChocCandy = 19,
62 kInvItemRakeBroken = 21,
63 kInvItemHeartShapedCandy = 22,
64 kInvItemWrappedCandy = 23,
66 kInvItemRakeFixed = 25,
68 kInvItemPlasticApple = 27,
70 kInvItemSuperGlue = 29,
71 kInvItemConeAndNeedle = 30,
72 kInvItemConeAndFeather = 31,
74 kInvItemFeatherDusterDirty = 33,
75 kInvItemPaintedPotato = 34,
78 kInvItemShovelAct2 = 37,
79 kInvItemRopeAct2 = 38,
82 kInvItemDiveEquipment = 41,
84 kInvItemGrapplingHook = 43,
85 kInvItemSickleBlunt = 44,
87 kInvItemSickleSharp = 46,
88 kInvItemHandkerchief = 47,
92 kInvItemBanknote = 51,
93 kInvItemDictaphoneNoBatteries = 52,
94 kInvItemPolaroidCamera = 53,
95 kInvItemVideoTape = 54,
96 kInvItemSheetOfPaper = 55,
98 kInvItemRemoteControl = 57,
99 kInvItemIceTongs = 58,
101 kInvItemWrappedCork = 60,
103 kInvItemChilliWithLabel = 62,
104 kInvItemPastryRoller = 63,
105 kInvItemFakeChilli = 64,
107 kInvItemBatteries = 66,
108 kInvItemDictaphoneWithBatteries = 67,
109 kInvItemBurningPaper = 68,
111 kInvItemPlasticBag = 70,
113 kInvItemTimePills = 72,
115 kInvItemChilliNoLabel = 74,
118 kInvItemJailKey = 77,
119 kInvItemDelicatePlant = 78,
120 kInvItemSwissArmyKnife = 79,
122 kInvItemShovelAct1 = 81,
123 kInvItemKaleidoscope = 82,
124 kInvItemSoldierNews = 83,
125 kInvItemGrenade = 84,
127 kInvItemMugOfMud = 86,
129 kInvItemRopeAct1 = 88,
130 kInvItemRopeAndGrenade = 89,
131 kInvItemMedicine = 90,
132 kInvItemDruggedFood = 91,
137 const uint8 kInventorySize = 24;
149 bool has(byte item)
const;
150 void remove(byte item);
152 void activate(
bool a) { _active = a; }
153 bool active()
const {
return _active; }
158 void resetSelectedObject() { _selectedObj = NULL; }
164 uint _offset[kNumInventoryItems+1];
175 Item() : _hovered(
false) {}
177 void load(
Inventory *inventory, uint itemId);
182 Item _graphics[kInventorySize];
Definition: teenagent.h:83
Definition: objects.h:180
Definition: animation.h:30
Definition: inventory.h:139