aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/scumm.h
diff options
context:
space:
mode:
authorTravis Howell2009-07-25 06:27:41 +0000
committerTravis Howell2009-07-25 06:27:41 +0000
commitc02ad3b7bfe5813c9bd86672ead37110d21d9bb5 (patch)
tree28640b732810b3f603903ae42eb8fc99450b5f49 /engines/scumm/scumm.h
parent41ef4938ac8cfcccba4d42c5e474a5a619d9db2b (diff)
downloadscummvm-rg350-c02ad3b7bfe5813c9bd86672ead37110d21d9bb5.tar.gz
scummvm-rg350-c02ad3b7bfe5813c9bd86672ead37110d21d9bb5.tar.bz2
scummvm-rg350-c02ad3b7bfe5813c9bd86672ead37110d21d9bb5.zip
Add patch #2821100 - MM C64 Objects / Verb fixes, with minor clean up applied.
svn-id: r42737
Diffstat (limited to 'engines/scumm/scumm.h')
-rw-r--r--engines/scumm/scumm.h5
1 files changed, 5 insertions, 0 deletions
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);