00001
00002
00003
00004
00005
00006
00007
00008 #ifndef QAF_GAMEOBJFACTORY_H
00009 #define QAF_GAMEOBJFACTORY_H
00010
00011 #include "qafGameObj.h"
00012
00013
00014
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