massive cleaning of file section headers
[physics.git] / src / Entities / Polygon.h
CommitLineData
ad9f1fb6
PG
1#ifndef POLYGON_H
2#define POLYGON_H
3
4#include "PhysicsEntity.h"
5#include "../Vector2.h"
6
7#include <vector>
8using std::vector;
9
617dcc71 10
ad9f1fb6 11/// ***** Header Class *****
617dcc71 12
ad9f1fb6
PG
13class Polygon: public PhysicsEntity
14{
15 public:
5f1f55d1 16 Polygon(const Vector2&, vector<Vector2>);
ad9f1fb6
PG
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:
617dcc71 29 void createBindingBox();
ad9f1fb6
PG
30};
31
32#endif // POLYGON_H