ScummVM API documentation
Pegasus::Item Class Referenceabstract
Inheritance diagram for Pegasus::Item:
Pegasus::IDObject Pegasus::BiochipItem Pegasus::InventoryItem Pegasus::AIChip Pegasus::ArthurChip Pegasus::MapChip Pegasus::OpticalChip Pegasus::PegasusChip Pegasus::RetScanChip Pegasus::ShieldChip Pegasus::AirMask Pegasus::GasCanister Pegasus::KeyCard

Public Member Functions

 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
 
virtual ItemType getItemType ()=0
 
TimeValue getInfoLeftTime () const
 
void getInfoRightTimes (TimeValue &, TimeValue &) const
 
TimeValue getSharedAreaTime () const
 
SpritegetDragSprite (const DisplayElementID) const
 
virtual void select ()
 
virtual void deselect ()
 
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
 

Static Protected Member Functions

static void getItemStateEntry (ItemStateInfo, uint32, ItemState &, TimeValue &)
 
static void findItemStateEntryByState (ItemStateInfo, ItemState, TimeValue &)
 
static ItemStateInfo readItemState (Common::SeekableReadStream *stream)
 

Protected Attributes

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
 

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