| 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 | /// ***** Header Class ***** |
| 11 | class Polygon: public PhysicsEntity |
| 12 | { |
| 13 | public: |
| 14 | Polygon(const Vector2&, vector<Vector2>); |
| 15 | virtual ~Polygon(); |
| 16 | |
| 17 | virtual void draw() const; |
| 18 | |
| 19 | protected: |
| 20 | Vector2 maxP; // stores the max bounding box point |
| 21 | Vector2 minP; // stores the min bounding box point |
| 22 | |
| 23 | vector<Vector2> points; |
| 24 | |
| 25 | // color; |
| 26 | private: |
| 27 | void CreateBindingBox(); |
| 28 | }; |
| 29 | |
| 30 | #endif // POLYGON_H |