diff options
author | Vladimir Menshakov | 2010-03-21 07:49:53 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2010-03-21 07:49:53 +0000 |
commit | 338532ec3c1eff284f5b8876b1058531b2af46c5 (patch) | |
tree | 6bdb8e0c405463f88b8394d7fd510c50a34630a1 /engines/teenagent/inventory.h | |
parent | 76ef5d4aea87d07ccf1fd4fbba33af2aae9c42e8 (diff) | |
download | scummvm-rg350-338532ec3c1eff284f5b8876b1058531b2af46c5.tar.gz scummvm-rg350-338532ec3c1eff284f5b8876b1058531b2af46c5.tar.bz2 scummvm-rg350-338532ec3c1eff284f5b8876b1058531b2af46c5.zip |
preload inventory graphics on load
svn-id: r48350
Diffstat (limited to 'engines/teenagent/inventory.h')
-rw-r--r-- | engines/teenagent/inventory.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/teenagent/inventory.h b/engines/teenagent/inventory.h index bce27c0cce..571c9cf6d7 100644 --- a/engines/teenagent/inventory.h +++ b/engines/teenagent/inventory.h @@ -42,7 +42,7 @@ public: void render(Graphics::Surface *surface, int delta); void clear(); - void flush(); + void reload(); void add(byte item); bool has(byte item) const; void remove(byte item); @@ -71,8 +71,9 @@ private: Item() : hovered(false) {} void free(); + void load(Inventory *inventory, uint item_id); void backgroundEffect(Graphics::Surface *s); - void render(Inventory *inventory, InventoryObject *obj, Graphics::Surface *surface, int delta); + void render(Inventory *inventory, uint item_id, Graphics::Surface *surface, int delta); } graphics[24]; bool _active; |