diff options
author | Robert Špalek | 2009-11-10 05:16:34 +0000 |
---|---|---|
committer | Robert Špalek | 2009-11-10 05:16:34 +0000 |
commit | e2ca397e63861b256d50ba5ea9550db3ac4421e5 (patch) | |
tree | 59886600416d6f6f680ccf4c6e4f65b4259c556d /engines/draci/script.h | |
parent | 501dfa24895b15f3be8b50406e62fe557f3d0fb1 (diff) | |
download | scummvm-rg350-e2ca397e63861b256d50ba5ea9550db3ac4421e5.tar.gz scummvm-rg350-e2ca397e63861b256d50ba5ea9550db3ac4421e5.tar.bz2 scummvm-rg350-e2ca397e63861b256d50ba5ea9550db3ac4421e5.zip |
Huge refactoring of data structures.
Replaced IDs of objects by pointers, which saves many lookups, each of which
is horribly ineffective. Moved a lot of code into methods of structs now
turned into objects.
Tested the new code a lot and seems to work as well as the old code.
svn-id: r45799
Diffstat (limited to 'engines/draci/script.h')
-rw-r--r-- | engines/draci/script.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/draci/script.h b/engines/draci/script.h index a7be243387..5fd63517c1 100644 --- a/engines/draci/script.h +++ b/engines/draci/script.h @@ -90,7 +90,7 @@ struct GPL2Program { }; class Animation; -struct GameObject; +class GameObject; class Script { @@ -193,9 +193,6 @@ private: int handleMathExpression(Common::MemoryReadStream *reader) const; DraciEngine *_vm; - - // Auxilliary functions - Animation *loadObjectAnimation(int objID, GameObject *obj, int animID); }; } // End of namespace Draci |