X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2FEntities%2FEntity.cpp;h=9b630a7837edbdf20d6851fc2113ea92238f66ef;hb=389bf8fdd7e1b8f4fe21e5a9fdb477d40d03d829;hp=ae0451438b7133aa6830c93ed54cb415ce661cc3;hpb=5e0713e5967be038b1b0cc5f0ffbd0180e3f7099;p=physics.git diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index ae04514..9b630a7 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -24,7 +24,7 @@ using namespace bear; /// ***** Constructors/Destructors ***** Entity::Entity(const Vector2& pos) - : position(pos), velocity(0,0) + : m_position(pos), m_velocity(0,0) { } @@ -37,10 +37,10 @@ Entity::~Entity() const Vector2& Entity::positionRaw() const { - return position; + return m_position; } const Vector2& Entity::velocityRaw() const { - return velocity; + return m_velocity; }