Go to the documentation of this file.00001
00002
00003 #ifndef _BODY_FACTORY_H_
00004 #define _BODY_FACTORY_H_
00005
00006 #include <EngineConfig.h>
00007 #include <core/Types.h>
00008
00009 namespace physics
00010 {
00011
00012 class Body;
00013 class BodyData;
00014
00015 class ENGINE_PUBLIC_EXPORT BodyFactory
00016 {
00017 public:
00018
00020 virtual Body* createBody(BodyData* bodyData) = 0;
00021 virtual Body* createBody(const std::string& name, BodyData* bodyData) = 0;
00022
00024 virtual void destroyBody(Body* body) = 0;
00025 };
00026
00027 }
00028
00029 #endif