ScummVM API documentation
Dragons::Inventory Class Reference

Public Member Functions

 Inventory (DragonsEngine *vm)
 
void init (ActorManager *actorManager, BackgroundResourceLoader *backgroundResourceLoader, Bag *bag, DragonINIResource *dragonIniResource)
 
void loadScene (uint32 sceneId)
 
bool isActorSet ()
 
int32 getSequenceId ()
 
void setActorSequenceId (int32 sequenceId)
 
void updateActorSequenceId (int32 sequenceId)
 
void resetSequenceId ()
 
InventoryState getState ()
 
void setState (InventoryState newState)
 
void setPreviousState ()
 
int16 getPositionIndex ()
 
Common::Point getPosition ()
 
bool isOpen ()
 
void close ()
 
void updateVisibility ()
 
void setActorFlag400 ()
 
void clearActorFlag400 ()
 
void setPriority (uint16 priority)
 
void openInventory ()
 
void closeInventory ()
 
void draw ()
 
uint16 getIniAtPosition (int16 x, int16 y)
 
void loadInventoryItemsFromSave ()
 
void openInventionBook ()
 
void closeInventionBook ()
 
bool addItem (uint16 iniId)
 
bool addItemIfPositionIsEmpty (uint16 iniId, uint16 x, uint16 y)
 
void replaceItem (uint16 existingIniId, uint16 newIniId)
 
bool clearItem (uint16 iniId)
 
bool hasItem (uint16 iniId)
 
ActorgetInventoryItemActor (uint16 iniId)
 
void inventoryMissing ()
 

Public Attributes

InventoryState _previousState
 

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