X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2FEntities%2FEntity.cpp;h=9b630a7837edbdf20d6851fc2113ea92238f66ef;hp=ae0451438b7133aa6830c93ed54cb415ce661cc3;hb=3ae4b04702cc54d19264e57105a7073c40c5e116;hpb=fd1a93a71bc0222dd77f56c145d550cb6f7829bc 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; }