qafGameObjFactory.h

00001 /* 
00002 ** Qaf Framework 1.2
00003 ** June 2006
00004 ** 
00005 ** Pedro Luchini de Moraes, Public Domain - Free Lunch Code
00006 */
00007 
00008 #ifndef QAF_GAMEOBJFACTORY_H
00009 #define QAF_GAMEOBJFACTORY_H
00010 
00011 #include "qafGameObj.h"
00012 
00013 // MS Visual Studio 6: Disables the "identifier was truncated to '255'
00014 // characters in the browser information" warning:
00015 #pragma warning (disable:4786)
00016 
00017 #include <map>
00018 #include <string>
00019 
00020 
00021 namespace qaf {
00022     
00027     typedef std::map<std::string, std::string> AttributeTable;
00028     
00034     class GameObjFactory {
00035     public:
00036         
00063         virtual GameObj * createObject ( std::string & objID,
00064                                          int objX, int objY,
00065                                          AttributeTable & attributes ) = 0;
00066         
00067         virtual ~GameObjFactory () {}
00068         
00069     };
00070     
00071 }
00072 
00073 #endif

Generated on Sun Mar 25 12:32:12 2007 for Qaf Framework by  doxygen 1.5.1-p1