diff options
author | Paul Gilbert | 2014-08-23 23:21:17 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-23 23:21:17 -0400 |
commit | ee62d6c1cfce009331050fb9bf8bfecbb8f51472 (patch) | |
tree | cc0281eb48a9e03b05d74234804db208ec4fa6c3 /engines/access/inventory.h | |
parent | 955df7a94ce21d311d6e34d263d96070548d855e (diff) | |
download | scummvm-rg350-ee62d6c1cfce009331050fb9bf8bfecbb8f51472.tar.gz scummvm-rg350-ee62d6c1cfce009331050fb9bf8bfecbb8f51472.tar.bz2 scummvm-rg350-ee62d6c1cfce009331050fb9bf8bfecbb8f51472.zip |
ACCESS: In progress inventory display screen
Diffstat (limited to 'engines/access/inventory.h')
-rw-r--r-- | engines/access/inventory.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/engines/access/inventory.h b/engines/access/inventory.h index dddfe2eda1..019d7f4215 100644 --- a/engines/access/inventory.h +++ b/engines/access/inventory.h @@ -28,10 +28,51 @@ #include "common/rect.h" #include "common/str-array.h" #include "access/data.h" +#include "access/asurface.h" namespace Access { class InventoryManager : public Manager { + struct SavedFields { + int _vWindowHeight; + int _vWindowLinesTall; + int _vWindowWidth; + int _vWindowBytesWide; + int _playFieldHeight; + int _playFieldWidth; + int _windowXAdd; + int _windowYAdd; + int _screenYOff; + int _scrollX; + int _scrollY; + int _clipWidth; + int _clipHeight; + Common::Point _bufferStart; + int _scrollCol; + int _scrollRow; + }; +private: + Common::Array<int> _items; + ASurface _savedBuffer1; + ASurface _savedScreen; + SavedFields _fields; + bool _iconDisplayFlag; + + void savedFields(); + + void restoreFields(); + + void initFields(); + + void getList(); + + void showAllItems(); + + void putInvIcon(int itemIndex, int itemId); + + void chooseItem(); + + void freeInvCells(); public: Common::Array<int> _inv; Common::StringArray _names; |