diff options
author | Johannes Schickel | 2008-05-02 15:08:45 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-05-02 15:08:45 +0000 |
commit | 7566a12352ff6c5609c8db032a73961d8feffbf9 (patch) | |
tree | 3f6bdc939e1df9b9ec2fb7dbafde713366298026 /engines/kyra/kyra_v2.h | |
parent | 52003bc1954d1c2f9c88bb1479e3e0ff24f4e849 (diff) | |
download | scummvm-rg350-7566a12352ff6c5609c8db032a73961d8feffbf9.tar.gz scummvm-rg350-7566a12352ff6c5609c8db032a73961d8feffbf9.tar.bz2 scummvm-rg350-7566a12352ff6c5609c8db032a73961d8feffbf9.zip |
Moved common kyra2/kyra3 item to KyraEngine_v2.
svn-id: r31819
Diffstat (limited to 'engines/kyra/kyra_v2.h')
-rw-r--r-- | engines/kyra/kyra_v2.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/engines/kyra/kyra_v2.h b/engines/kyra/kyra_v2.h index 08220123bb..0e44da4934 100644 --- a/engines/kyra/kyra_v2.h +++ b/engines/kyra/kyra_v2.h @@ -205,6 +205,36 @@ protected: int _pathfinderPositionTable[400]; int _pathfinderPositionIndexTable[200]; + + // items + struct Item { + uint16 id; + uint16 sceneId; + int16 x; + uint8 y; + }; + + void initItemList(int size); + + Item *_itemList; + int _itemListSize; + + int _itemInHand; + int _handItemSet; + + int findFreeItem(); + int countAllItems(); + + int findItem(uint16 sceneId, uint16 id); + int findItem(uint16 item); + + void resetItemList(); + void resetItem(int index); + + virtual void setMouseCursor(uint16 item) = 0; + + void setHandItem(uint16 item); + void removeHandItem(); }; } // end of namespace Kyra |