From e2ca397e63861b256d50ba5ea9550db3ac4421e5 Mon Sep 17 00:00:00 2001 From: Robert Špalek Date: Tue, 10 Nov 2009 05:16:34 +0000 Subject: 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 --- engines/draci/script.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'engines/draci/script.h') 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 -- cgit v1.2.3