25 #ifndef PEGASUS_ITEMS_INVENTORYPICTURE_H 26 #define PEGASUS_ITEMS_INVENTORYPICTURE_H 28 #include "pegasus/input.h" 29 #include "pegasus/movie.h" 30 #include "pegasus/surface.h" 45 void throwAwayInventoryImage();
48 void activateInventoryPicture();
49 void deactivateInventoryPicture();
50 void handleInput(
const Input &,
const Hotspot *)
override;
51 bool wantsCursor()
override {
return false; }
53 InventoryResult addInventoryItem(
Item *);
54 InventoryResult removeInventoryItem(
Item *);
55 void removeAllItems();
56 Item *getCurrentItem() {
return _currentItem; }
57 void setCurrentItemIndex(int32);
58 void setCurrentItemID(ItemID);
59 int32 getCurrentItemIndex() {
return _currentItemIndex; }
60 bool itemInInventory(
Item *);
61 bool itemInInventory(
const ItemID);
64 void getItemXY(uint32, CoordType &, CoordType &);
67 virtual void highlightCurrentItem();
68 virtual void unhighlightCurrentItem() {}
69 virtual TimeValue getItemPanelTime(
Item *) = 0;
72 uint32 _lastReferenceCount;
73 Frame _highlightImage;
75 int32 _currentItemIndex;
78 bool _active, _shouldDrawHighlight;
96 void deactivateInventoryPicture();
98 void disableLooping() { _isLooping =
false; }
100 void setCommPicture();
104 void highlightCurrentItem()
override;
105 void unhighlightCurrentItem()
override;
106 TimeValue getItemPanelTime(
Item *)
override;
107 void loopCurrentItem();
118 void unhighlightCurrentItem()
override;
119 TimeValue getItemPanelTime(
Item *)
override;
Definition: transition.h:60
Definition: surface.h:105
Definition: inventory.h:41
Definition: elements.h:43
Definition: inventorypicture.h:39
Definition: inventorypicture.h:112
Definition: inventorypicture.h:91
Definition: ai_action.h:33
Definition: surface.h:125