1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/********************************************************************
*
*	File:		fsCCollisionShape.h
*
*	Purpose:	Collision shape component
*
*********************************************************************/

#ifndef fsCCollisionShapehdr
#define fsCCollisionShapehdr

#include "Box2D/Collision/Shapes/b2Shape.h"

#include <fsCore/src/fsCUniqueId.h>

#include "../../fsICollisionShape.h"

namespace fsNCollision
{
	class fsCCollisionShape : public fsICollisionShape
	{
		friend class fsCCollisionFixture;
		friend class fsICollisionShape;
		friend class fsCCollisionWorld;

	public:

		virtual ~fsCCollisionShape();<--- Destructor in derived class

	protected:

		fsCCollisionShape(fsISpriteComponent* pSprt);
		fsCCollisionShape(eSHAPE pShape);

	private:

		eSHAPE mShape;
		b2Shape* mImpl;

	};
}

#endif