222e4cd432b70e8020373fb18956386476f5cb57
[physics.git] / src / Entities / Polygon.h
1 #ifndef POLYGON_H
2 #define POLYGON_H
3
4 #include "PhysicsEntity.h"
5 #include "../Vector2.h"
6
7 #include <vector>
8 using std::vector;
9
10
11 /// ***** Header Class *****
12
13 class Polygon: public PhysicsEntity
14 {
15     public:
16         Polygon(const Vector2&, vector<Vector2>);
17         virtual ~Polygon();
18
19         virtual void draw() const;
20
21     protected:
22         Vector2 maxP; // stores the max bounding box point
23         Vector2 minP; // stores the min bounding box point
24
25         vector<Vector2> points;
26
27         // color;
28     private:
29         void createBindingBox();
30 };
31
32 #endif // POLYGON_H