Commit | Line | Data |
---|---|---|
ad9f1fb6 | 1 | #include "Ball.h" |
5f1f55d1 PG |
2 | #include "../debug.h" |
3 | ||
ad9f1fb6 | 4 | #include "../Vector2.h" |
44b079f8 | 5 | #include "../graphics/graphics.h" |
ad9f1fb6 PG |
6 | |
7 | /// ***** Public Class Methods ***** | |
5f1f55d1 PG |
8 | Ball::Ball(const Vector2& pos, float radius, const float* color) |
9 | : PhysicsEntity(pos), radius(radius), color(color) | |
ad9f1fb6 PG |
10 | { |
11 | ||
12 | } | |
13 | Ball::~Ball() | |
14 | { | |
15 | ||
16 | } | |
17 | ||
18 | void Ball::draw() const | |
19 | { | |
89ca62b2 | 20 | glDrawCircle(radius, position, color); |
ad9f1fb6 | 21 | } |
094a13b8 PG |
22 | |
23 | float Ball::getRadius() const | |
24 | { | |
25 | return radius; | |
26 | } |