aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parallaction.h
diff options
context:
space:
mode:
authorNicola Mettifogo2007-11-19 20:46:28 +0000
committerNicola Mettifogo2007-11-19 20:46:28 +0000
commitf8e1da5b60b1ce9ea3a7e590cb40fdcfb860fa0b (patch)
tree55489dbe05e007920ef9a163650bc470423b1acb /engines/parallaction/parallaction.h
parent7270c8113e0bd2bd826d3166716773a603b67c51 (diff)
downloadscummvm-rg350-f8e1da5b60b1ce9ea3a7e590cb40fdcfb860fa0b.tar.gz
scummvm-rg350-f8e1da5b60b1ce9ea3a7e590cb40fdcfb860fa0b.tar.bz2
scummvm-rg350-f8e1da5b60b1ce9ea3a7e590cb40fdcfb860fa0b.zip
* made engine use Inventory and InventoryRenderer
* inventory drawing is now performed directly in the framebuffer instead of using the game screen buffer * specialized jobs to handle inventory drawing have been deleted as they had become obsolete svn-id: r29571
Diffstat (limited to 'engines/parallaction/parallaction.h')
-rw-r--r--engines/parallaction/parallaction.h29
1 files changed, 17 insertions, 12 deletions
diff --git a/engines/parallaction/parallaction.h b/engines/parallaction/parallaction.h
index b12ee8beeb..23506de61d 100644
--- a/engines/parallaction/parallaction.h
+++ b/engines/parallaction/parallaction.h
@@ -489,10 +489,6 @@ public:
Common::RandomSource _rnd;
- virtual void showInventory() = 0;
- virtual void jobHideInventory(void*, Job*) = 0;
-
-
protected: // data
Debugger *_debugger;
@@ -562,13 +558,7 @@ protected: // members
void freeCharacter();
-
- int addInventoryItem(ItemName item, uint32 value);
- int addInventoryItem(ItemName item);
- void dropItem(ItemName item);
int16 pickupItem(Zone *z);
- bool isItemInInventory(int32 v);
- int16 getHoverInventoryItem(int16 x, int16 y);
public:
virtual void callFunction(uint index, void* parm) { }
@@ -599,6 +589,23 @@ public:
const char **_callableNamesRes;
const char **_instructionNamesRes;
+ void highlightInventoryItem(ItemPosition pos, byte color);
+ int16 getHoverInventoryItem(int16 x, int16 y);
+ int addInventoryItem(ItemName item);
+ int addInventoryItem(ItemName item, uint32 value);
+ void dropItem(uint16 v);
+ bool isItemInInventory(int32 v);
+ const InventoryItem* getInventoryItem(int16 pos);
+ int16 getInventoryItemIndex(int16 pos);
+ void initInventory();
+ void destroyInventory();
+ void cleanInventory(bool keepVerbs = true);
+ void openInventory();
+ void closeInventory();
+
+ Inventory *_inventory;
+ InventoryRenderer *_inventoryRenderer;
+
};
@@ -737,7 +744,6 @@ protected:
void jobDisplayDroppedItem(void*, Job *j);
void jobRemovePickedItem(void*, Job *j);
void jobToggleDoor(void*, Job *j);
- void jobHideInventory(void *parm, Job *j);
void runScripts();
void walk();
@@ -745,7 +751,6 @@ protected:
void eraseAnimations();
void drawLabel();
void eraseLabel();
- void showInventory();
// location parser