created input, graphics and game namespaces
[physics.git] / src / Entities / Ball.cpp
index 37a37c7..f33d426 100644 (file)
@@ -4,7 +4,9 @@
 #include "../Vector2.h"
 #include "../graphics/graphics.h"
 
-/// ***** Public Class Methods *****
+
+/// ***** Constructors/Destructors *****
+
 Ball::Ball(const Vector2& pos, float radius, const float* color)
     : PhysicsEntity(pos), radius(radius), color(color)
 {
@@ -15,7 +17,14 @@ Ball::~Ball()
 
 }
 
+/// ***** Public Class Methods *****
+
 void Ball::draw() const
 {
-    glDrawCircle(radius, position, color);
+    graphics::drawCircle(radius, position, color);
+}
+
+float Ball::getRadius() const
+{
+    return radius;
 }