22 #ifndef MADS_INVENTORY_H 23 #define MADS_INVENTORY_H 25 #include "common/scummsys.h" 26 #include "common/array.h" 27 #include "common/serializer.h" 32 PLAYER_INVENTORY = 2, NOWHERE = 1
38 #define MAX_QUALITIES 4 53 } _vocabList[MAX_VOCAB];
55 int _qualityId[MAX_QUALITIES];
56 int _qualityValue[MAX_QUALITIES];
71 void setQuality(
int qualityId,
int qualityValue);
105 return (*
this)[_inventoryList[itemIndex]];
111 void setRoom(
int objectId,
int sceneNumber);
116 bool isInRoom(
int objectId)
const;
121 bool isInInventory(
int objectId)
const;
126 void addToInventory(
int objectId);
133 void removeFromInventory(
int objectId,
int newScene);
135 int getIdFromDesc(
int objectId);
Definition: resources.h:78
InventoryObject & getItem(int itemIndex)
Definition: inventory.h:104
Definition: inventory.h:79
Definition: serializer.h:79
int getQuality(int qualityId) const
bool hasQuality(int qualityId) const
InventoryObjects(MADSEngine *vm)
Definition: inventory.h:89
Definition: inventory.h:40
void synchronize(Common::Serializer &s)
void setQuality(int qualityId, int qualityValue)