added suport for ballxpolygon collision ... VERY hacky
[physics.git] / src / Entities / Polygon.h
index 5d8d10d..82ff9d7 100644 (file)
@@ -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