aboutsummaryrefslogtreecommitdiff
path: root/engines/made/database.h
diff options
context:
space:
mode:
authorBenjamin Haisch2008-05-05 10:45:11 +0000
committerBenjamin Haisch2008-05-05 10:45:11 +0000
commitb6c7385eb4fea90dd315124fe5bffe874430eb48 (patch)
tree2ac22b5cafe9b9e5bbb7cbf616f0e5c41b34ba64 /engines/made/database.h
parent665caae8b4e06a8a87ab41de0f2361bba4c7cf4f (diff)
downloadscummvm-rg350-b6c7385eb4fea90dd315124fe5bffe874430eb48.tar.gz
scummvm-rg350-b6c7385eb4fea90dd315124fe5bffe874430eb48.tar.bz2
scummvm-rg350-b6c7385eb4fea90dd315124fe5bffe874430eb48.zip
- Renamed XmidiResource to GenericResource
- Added MIDI resource type - Added ScriptFunctionsLgop2 and ScriptFunctionsMhne (for Leather Goddesses of Phobos 2 and The Manhole: New and Enhanced, resp.) - Many changes for LGOP2 and The Manhole: N&E Note about the new ScriptFunctions classes: I copied the ScriptFunctionsRtz class and so duplicated a lot of code. Most of the opcode functions are the same in all games but there might be differences. Once all common opcode functions have been figured out, they'll be moved to a common place (like the ScriptFunctions class). svn-id: r31871
Diffstat (limited to 'engines/made/database.h')
-rw-r--r--engines/made/database.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/made/database.h b/engines/made/database.h
index adaf91f6d3..b92bd8f2dd 100644
--- a/engines/made/database.h
+++ b/engines/made/database.h
@@ -41,8 +41,9 @@ class Object {
public:
Object();
~Object();
- int load(Common::SeekableReadStream &source);
- int load(byte *source);
+ int loadVersion2(Common::SeekableReadStream &source);
+ int loadVersion3(Common::SeekableReadStream &source);
+ int loadVersion3(byte *source);
uint16 getFlags() const;
uint16 getClass() const;
@@ -96,9 +97,14 @@ public:
int16 getVar(int16 index);
void setVar(int16 index, int16 value);
+ int16 *getObjectPropertyPtrV2(int16 objectIndex, int16 propertyId, int16 &propertyFlag);
+ int16 *getObjectPropertyPtrV3(int16 objectIndex, int16 propertyId, int16 &propertyFlag);
int16 *getObjectPropertyPtr(int16 objectIndex, int16 propertyId, int16 &propertyFlag);
+
int16 getObjectProperty(int16 objectIndex, int16 propertyId);
int16 setObjectProperty(int16 objectIndex, int16 propertyId, int16 value);
+
+ const char *getString(uint16 offset);
void dumpObject(int16 index);
@@ -107,6 +113,7 @@ protected:
Common::Array<Object*> _objects;
byte *_gameState;
uint32 _gameStateSize;
+ char *_gameText;
int16 _mainCodeObjectIndex;
void load(Common::SeekableReadStream &sourceS);
void loadVersion2(Common::SeekableReadStream &sourceS);