float passedTime = (float)timeSpan.TotalSeconds;\r
\r
bool requestMove = (moveLeft ^ moveRight) || (moveUp ^ moveDown);\r
- if (!IsMoving && requestMove)\r
+ if (!mIsMoving && requestMove)\r
{\r
mTimeAccumulator = passedTime;\r
\r
\r
RecalculatePosition(mTimeAccumulator / mInverseSpeed);\r
}\r
- else if (IsMoving)\r
+ else if (mIsMoving)\r
{\r
mTimeAccumulator += passedTime;\r
\r
Point mLastCoordinates; // Last position on the grid.\r
float mInverseSpeed; // The time it takes to move from one cell to another.\r
float mTimeAccumulator; // Amount of time passed since last move.\r
- bool mIsMoving // Whether or not it is currently in the process of moving.\r
+ bool mIsMoving; // Whether or not it is currently in the process of moving.\r
Direction mDirection; // The direction the object is facing.\r
\r
#endregion\r