X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FEntities%2FBall.cpp;h=e235739eb6e42269af7232dc51ff375a4657da8a;hb=389bf8fdd7e1b8f4fe21e5a9fdb477d40d03d829;hp=517c67afd5174c0a4a07ef802bf47478d8c5f014;hpb=3d1f081343dc603a3292538eeb9bd794b255deb6;p=physics.git diff --git a/src/Entities/Ball.cpp b/src/Entities/Ball.cpp index 517c67a..e235739 100644 --- a/src/Entities/Ball.cpp +++ b/src/Entities/Ball.cpp @@ -16,16 +16,18 @@ */ #include "Ball.h" -#include "debug.h" -#include "Vector2.h" +#include +#include +using namespace bear; + #include "graphics/graphics.h" /// ***** Constructors/Destructors ***** Ball::Ball(const Vector2& pos, float radius, const float* color) - : PhysicsEntity(pos), radius(radius), color(color) + : PhysicsEntity(pos), m_radius(radius), m_color(color) { } @@ -38,10 +40,10 @@ Ball::~Ball() void Ball::draw() const { - graphics::drawCircle(radius, position, color); + graphics::drawCircle(m_radius, m_position, m_color); } float Ball::getRadius() const { - return radius; + return m_radius; }