Effect methods changed from pure virtual to defaulting to a 0,0 vector
[physics.git] / src / Entities / Ball.cpp
CommitLineData
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
8Ball::Ball(const Vector2& pos, float radius, const float* color)
9 : PhysicsEntity(pos), radius(radius), color(color)
ad9f1fb6
PG
10{
11
12}
13Ball::~Ball()
14{
15
16}
17
18void Ball::draw() const
19{
89ca62b2 20 glDrawCircle(radius, position, color);
ad9f1fb6 21}
094a13b8
PG
22
23float Ball::getRadius() const
24{
25 return radius;
26}