Commit | Line | Data |
---|---|---|
ad9f1fb6 PG |
1 | #ifndef BALL_H |
2 | #define BALL_H | |
3 | ||
4 | #include "PhysicsEntity.h" | |
5 | #include "../Vector2.h" | |
6 | ||
617dcc71 | 7 | |
ad9f1fb6 | 8 | /// ***** Header Class ***** |
617dcc71 | 9 | |
ad9f1fb6 PG |
10 | class Ball: public PhysicsEntity |
11 | { | |
12 | public: | |
5f1f55d1 | 13 | Ball(const Vector2&, float radius, const float* color); |
ad9f1fb6 PG |
14 | virtual ~Ball(); |
15 | ||
16 | virtual void draw() const; | |
17 | ||
094a13b8 PG |
18 | float getRadius() const; |
19 | ||
ad9f1fb6 PG |
20 | protected: |
21 | float radius; | |
5f1f55d1 | 22 | const float* color; |
ad9f1fb6 PG |
23 | }; |
24 | ||
25 | #endif // BALL_H |