changed src so the libpg headers are now used
[physics.git] / src / Entities / Polygon.h
index d775352..6b115fc 100644 (file)
@@ -18,8 +18,9 @@
 #ifndef POLYGON_H
 #define POLYGON_H
 
+#include <pg/Vector2.h>
+
 #include "PhysicsEntity.h"
-#include "../Vector2.h"
 
 #include <vector>
 using std::vector;
@@ -30,20 +31,21 @@ using std::vector;
 class Polygon: public PhysicsEntity
 {
     public:
-        Polygon(const Vector2&, vector<Vector2>);
+        Polygon(const vector<Vector2>&, const float* color);
         virtual ~Polygon();
 
         virtual void draw() const;
 
-    protected:
+    //protected:
         Vector2 maxP; // stores the max bounding box point
         Vector2 minP; // stores the min bounding box point
 
         vector<Vector2> points;
 
-        // color;
+        const float* color;
     private:
         void createBindingBox();
+        void centerPosition();
 };
 
 #endif // POLYGON_H