Commit | Line | Data |
---|---|---|
ad9f1fb6 | 1 | #include "Polygon.h" |
617dcc71 | 2 | |
ad9f1fb6 PG |
3 | #include "../Vector2.h" |
4 | ||
617dcc71 PG |
5 | |
6 | /// ***** Constructors/Destructors ***** | |
7 | ||
5f1f55d1 | 8 | Polygon::Polygon(const Vector2& pos, vector<Vector2> points) |
ad9f1fb6 PG |
9 | : PhysicsEntity(pos), points(points) |
10 | { | |
617dcc71 | 11 | createBindingBox(); |
ad9f1fb6 PG |
12 | } |
13 | Polygon::~Polygon() | |
14 | { | |
15 | ||
16 | } | |
17 | ||
617dcc71 PG |
18 | /// ***** Public Class Methods ***** |
19 | ||
ad9f1fb6 PG |
20 | void Polygon::draw() const |
21 | { | |
22 | // TODO | |
23 | } | |
24 | ||
25 | /// ***** Private Class Methods ***** | |
617dcc71 | 26 | void Polygon::createBindingBox() |
ad9f1fb6 PG |
27 | { |
28 | // TODO | |
29 | } |