diff options
author | Johannes Schickel | 2010-10-22 02:10:22 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-10-22 02:10:22 +0000 |
commit | 03e2d54ca7f3d5533cbae376921cf617736caee5 (patch) | |
tree | 989df6c2dc37bd783ad678744a60e446b8b74007 /engines/kyra/kyra_v2.h | |
parent | 3653613443d8def9ae7f552eb799d1f039fd8097 (diff) | |
download | scummvm-rg350-03e2d54ca7f3d5533cbae376921cf617736caee5.tar.gz scummvm-rg350-03e2d54ca7f3d5533cbae376921cf617736caee5.tar.bz2 scummvm-rg350-03e2d54ca7f3d5533cbae376921cf617736caee5.zip |
KYRA: Adapt Kyra2+3 to use the newly added item type too.
svn-id: r53697
Diffstat (limited to 'engines/kyra/kyra_v2.h')
-rw-r--r-- | engines/kyra/kyra_v2.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/engines/kyra/kyra_v2.h b/engines/kyra/kyra_v2.h index 697a4aa88c..d1a81fd64c 100644 --- a/engines/kyra/kyra_v2.h +++ b/engines/kyra/kyra_v2.h @@ -29,6 +29,7 @@ #include "kyra/kyra_v1.h" #include "kyra/gui.h" #include "kyra/wsamovie.h" +#include "kyra/item.h" #include "common/list.h" #include "common/hashmap.h" @@ -41,7 +42,7 @@ struct FrameControl { }; struct ItemAnimData_v2 { - int16 itemIndex; + Item itemIndex; uint8 numFrames; const FrameControl *frames; }; @@ -69,7 +70,7 @@ public: int animScriptFrameAdd; // Item specific - int maxItemId; + Item maxItemId; }; KyraEngine_v2(OSystem *system, const GameFlags &flags, const EngineDesc &desc); @@ -286,8 +287,8 @@ protected: int _pathfinderPositionIndexTable[200]; // items - struct Item { - uint16 id; + struct ItemDefinition { + Item id; uint16 sceneId; int16 x; uint8 y; @@ -295,9 +296,9 @@ protected: void initItemList(int size); - uint16 _hiddenItems[100]; + Item _hiddenItems[100]; - Item *_itemList; + ItemDefinition *_itemList; int _itemListSize; int _itemInHand; @@ -306,8 +307,8 @@ protected: int findFreeItem(); int countAllItems(); - int findItem(uint16 sceneId, uint16 id); - int findItem(uint16 item); + int findItem(uint16 sceneId, Item id); + int findItem(Item item); void resetItemList(); void resetItem(int index); @@ -325,7 +326,7 @@ protected: uint8 facing; uint16 animFrame; byte walkspeed; - uint16 inventory[20]; + Item inventory[20]; int16 x1, y1; int16 x2, y2; int16 x3, y3; |