ScummVM API documentation
Pegasus::InventoryItem Class Reference
Inheritance diagram for Pegasus::InventoryItem:
Pegasus::Item Pegasus::IDObject Pegasus::AirMask Pegasus::GasCanister Pegasus::KeyCard

Public Member Functions

 InventoryItem (const ItemID, const NeighborhoodID, const RoomID, const DirectionConstant)
 
ItemType getItemType () override
 
void getPanelTimes (TimeValue &, TimeValue &) const
 
TimeValue getLeftAreaTime () const
 
void setAnimationTime (const TimeValue)
 
TimeValue getAnimationTime () const
 
virtual void toggleItemState ()
 
void select () override
 
void deselect () override
 
- Public Member Functions inherited from Pegasus::Item
 Item (const ItemID id, const NeighborhoodID neighborhood, const RoomID room, const DirectionConstant direction)
 
virtual void writeToStream (Common::WriteStream *stream)
 
virtual void readFromStream (Common::ReadStream *stream)
 
virtual ActorID getItemOwner () const
 
virtual void setItemOwner (const ActorID owner)
 
void getItemRoom (NeighborhoodID &neighborhood, RoomID &room, DirectionConstant &direction) const
 
void setItemRoom (const NeighborhoodID neighborhood, const RoomID room, const DirectionConstant direction)
 
NeighborhoodID getItemNeighborhood () const
 
virtual WeightType getItemWeight ()
 
virtual void setItemState (const ItemState state)
 
virtual ItemState getItemState () const
 
TimeValue getInfoLeftTime () const
 
void getInfoRightTimes (TimeValue &, TimeValue &) const
 
TimeValue getSharedAreaTime () const
 
SpritegetDragSprite (const DisplayElementID) const
 
virtual bool isSelected ()
 
virtual void activate ()
 
virtual bool isActive ()
 
virtual void pickedUp ()
 
virtual void addedToInventory ()
 
virtual void removedFromInventory ()
 
virtual void dropped ()
 
virtual void giveUpSharedArea ()
 
virtual void takeSharedArea ()
 
void findItemExtra (const uint32 extraID, ItemExtraEntry &entry)
 
void reset ()
 
- Public Member Functions inherited from Pegasus::IDObject
 IDObject (const int32 id)
 
int32 getObjectID () const
 

Protected Attributes

JMPInventoryInfo _inventoryInfo
 
ItemStateInfo _leftAreaInfo
 
TimeValue _itemAnimationTime
 
- Protected Attributes inherited from Pegasus::Item
NeighborhoodID _itemNeighborhood
 
RoomID _itemRoom
 
DirectionConstant _itemDirection
 
ActorID _itemOwnerID
 
WeightType _itemWeight
 
ItemState _itemState
 
NeighborhoodID _originalNeighborhood
 
RoomID _originalRoom
 
DirectionConstant _originalDirection
 
JMPItemInfo _itemInfo
 
ItemStateInfo _sharedAreaInfo
 
ItemExtraInfo _itemExtras
 
bool _isActive
 
bool _isSelected
 

Additional Inherited Members

- Static Protected Member Functions inherited from Pegasus::Item
static void getItemStateEntry (ItemStateInfo, uint32, ItemState &, TimeValue &)
 
static void findItemStateEntryByState (ItemStateInfo, ItemState, TimeValue &)
 
static ItemStateInfo readItemState (Common::SeekableReadStream *stream)
 

The documentation for this class was generated from the following file: