added suport for ballxpolygon collision ... VERY hacky
[physics.git] / src / Entities / Polygon.h
index d775352..82ff9d7 100644 (file)
@@ -19,7 +19,7 @@
 #define POLYGON_H
 
 #include "PhysicsEntity.h"
-#include "../Vector2.h"
+#include "Vector2.h"
 
 #include <vector>
 using std::vector;
@@ -30,12 +30,12 @@ using std::vector;
 class Polygon: public PhysicsEntity
 {
     public:
-        Polygon(const Vector2&, vector<Vector2>);
+        Polygon(const vector<Vector2>&);
         virtual ~Polygon();
 
         virtual void draw() const;
 
-    protected:
+    //protected:
         Vector2 maxP; // stores the max bounding box point
         Vector2 minP; // stores the min bounding box point
 
@@ -44,6 +44,7 @@ class Polygon: public PhysicsEntity
         // color;
     private:
         void createBindingBox();
+        void centerPosition();
 };
 
 #endif // POLYGON_H