From c02ad3b7bfe5813c9bd86672ead37110d21d9bb5 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 25 Jul 2009 06:27:41 +0000 Subject: Add patch #2821100 - MM C64 Objects / Verb fixes, with minor clean up applied. svn-id: r42737 --- engines/scumm/scumm.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/scumm/scumm.h') diff --git a/engines/scumm/scumm.h b/engines/scumm/scumm.h index 3d16bea2b1..753c5c2bca 100644 --- a/engines/scumm/scumm.h +++ b/engines/scumm/scumm.h @@ -565,6 +565,9 @@ protected: int32 *_scummVars; byte *_bitVars; + bool _v0ObjectIndex; // V0 Use object index, instead of object number + bool _v0ObjectInInventory; // V0 Use object number from inventory + /* Global resource tables */ int _numVariables, _numBitVariables, _numLocalObjects; int _numGlobalObjects, _numArray, _numVerbs, _numFlObject; @@ -858,12 +861,14 @@ protected: int getObjNewDir(int obj); int getObjectIndex(int object) const; int getObjectImageCount(int object); + int whereIsObjectInventory(int object); int whereIsObject(int object) const; int findObject(int x, int y); void findObjectInRoom(FindObjectInRoom *fo, byte findWhat, uint object, uint room); public: int getObjectOrActorXY(int object, int &x, int &y); // Used in actor.cpp, hence public protected: + int getDist(int x, int y, int x2, int y2); int getObjActToObjActDist(int a, int b); // Not sure how to handle const byte *getObjOrActorName(int obj); // these three.. void setObjectName(int obj); -- cgit v1.2.3