change Vector2 param to a const Vector2&
[physics.git] / src / Entities / Ball.cpp
index ad24d8e..7b75839 100644 (file)
@@ -1,10 +1,12 @@
 #include "Ball.h"
+#include "../debug.h"
+
 #include "../Vector2.h"
 #include "../graphics/graphics.h"
 
 /// ***** Public Class Methods *****
-Ball::Ball(Vector2 pos, float radius)
-    : PhysicsEntity(pos), radius(radius)
+Ball::Ball(const Vector2& pos, float radius, const float* color)
+    : PhysicsEntity(pos), radius(radius), color(color)
 {
 
 }
@@ -15,7 +17,5 @@ Ball::~Ball()
 
 void Ball::draw() const
 {
-    // TODO
-
-    glDrawCircle(radius, &position);
+    glDrawCircle(radius, &position, color);
 }