ScummVM API documentation
cInventory Class Reference
Inheritance diagram for cInventory:
hpl::iUpdateable

Public Member Functions

 cInventory (cInit *apInit)
 
void OnStart ()
 
void Update (float afTimeStep)
 
void Reset ()
 
void OnDraw ()
 
void SetActive (bool abX)
 
bool IsActive ()
 
float GetAlpha ()
 
void AddWidget (iInventoryWidget *apWidget)
 
void AddItem (cGameItem *apGameItem)
 
void AddItemFromFile (const tString &asName, const tString &asFile, int alSlotIndex)
 
void RemoveItem (cInventoryItem *apItem)
 
cInventoryItemGetItem (const tString &asName)
 
void SetMousePos (const cVector2f &avPos)
 
void AddMousePos (const cVector2f &avRel)
 
void SetNoteBookActive (bool abX)
 
bool GetNoteBookActive ()
 
void OnMouseDown (eMButton aButton)
 
void OnMouseUp (eMButton aButton)
 
void OnDoubleClick (eMButton aButton)
 
void OnInventoryDown ()
 
void OnShortcutDown (int alNum)
 
cVector2f GetMousePos ()
 
void SetItemName (const tWString &asName)
 
void SetItemDesc (const tWString &asDesc)
 
cInventoryItemGetCurrentItem ()
 
void SetCurrentItem (cInventoryItem *apItem)
 
cInventorySlotGetCurrentSlot ()
 
void SetCurrentSlot (cInventorySlot *apSlot)
 
void SetCurrentItemOffset (const cVector2f &avOffset)
 
cInventorySlotGetEquipSlot (int alIdx)
 
cInventoryContextGetContext ()
 
cGameItemTypeGetItemType (int alIndex)
 
void SetDroppedInSlot (bool abX)
 
void SetMessage (const tWString &asMessage)
 
void AddPickupCallback (const tString &asItem, const tString &asFunction)
 
void AddUseCallback (const tString &asItem, const tString &asObject, const tString &asFunction)
 
void AddCombineCallback (const tString &asItem1, const tString &asItem2, const tString &asFunction)
 
void RemovePickupCallback (const tString &asFunction)
 
void RemoveUseCallback (const tString &asFunction)
 
void RemoveCombineCallback (const tString &asFunction)
 
void ClearCallbacks ()
 
void CheckPickupCallback (const tString &asItem)
 
bool CheckUseCallback (const tString &asItem, const tString &asObject)
 
bool CheckCombineCallback (const tString &asItem1, const tString &asItem2, int alSlotIndex)
 
void SaveToGlobal (cInventory_GlobalSave *apSave)
 
void LoadFromGlobal (cInventory_GlobalSave *apSave)
 
iSaveDataCreateSaveData ()
 
- Public Member Functions inherited from hpl::iUpdateable
 iUpdateable (const tString &asName)
 
virtual void OnPostSceneDraw ()
 
virtual void OnPostGUIDraw ()
 
virtual void OnPostBufferSwap ()
 
virtual void OnExit ()
 
const tStringGetName ()
 

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