X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FEntities%2FBall.cpp;h=750b2e5589aa245791c59af9f15021cbd0519ed9;hb=fd1a93a71bc0222dd77f56c145d550cb6f7829bc;hp=ecbb412be232e4ea7c357e66a530a9be654bb957;hpb=b85b89ba9a2cb0373209e8117046fd308faf0202;p=physics.git diff --git a/src/Entities/Ball.cpp b/src/Entities/Ball.cpp index ecbb412..750b2e5 100644 --- a/src/Entities/Ball.cpp +++ b/src/Entities/Ball.cpp @@ -17,9 +17,9 @@ #include "Ball.h" -#include -#include -using namespace pg; +#include +#include +using namespace bear; #include "graphics/graphics.h" @@ -27,7 +27,7 @@ using namespace pg; /// ***** 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) { } @@ -40,10 +40,10 @@ Ball::~Ball() void Ball::draw() const { - graphics::drawCircle(radius, position, color); + graphics::drawCircle(m_radius, position, m_color); } float Ball::getRadius() const { - return radius; + return m_radius; }