aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/player.h
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-28 22:02:35 -0400
committerPaul Gilbert2014-03-28 22:02:35 -0400
commit05459ac27f7a4838e6a81e569e6d0d075226780b (patch)
tree6fd0dfb6bea1510e8192d688b8e8ab1c824520a8 /engines/mads/player.h
parent49278129f6efffaa531ad29d32119d4ab83f3108 (diff)
downloadscummvm-rg350-05459ac27f7a4838e6a81e569e6d0d075226780b.tar.gz
scummvm-rg350-05459ac27f7a4838e6a81e569e6d0d075226780b.tar.bz2
scummvm-rg350-05459ac27f7a4838e6a81e569e6d0d075226780b.zip
MADS: Clean up of Player::move method
Diffstat (limited to 'engines/mads/player.h')
-rw-r--r--engines/mads/player.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/engines/mads/player.h b/engines/mads/player.h
index eee1cee67f..6500806f1f 100644
--- a/engines/mads/player.h
+++ b/engines/mads/player.h
@@ -54,18 +54,20 @@ private:
bool _mirror;
int _frameCount;
int _frameListIndex;
- bool _v844BC;
- int _v8452E;
- int _v8452C;
- int _v84530;
+ int _distAccum;
+ int _pixelAccum;
+ int _deltaDistance;
int _routeLength;
int _stopWalkerList[12];
int _stopWalkerTrigger[12];
int _stopWalkerIndex;
- int _hypotenuse;
+ int _totalDistance;
void clearStopList();
+ /**
+ * If the player is moving, handles figuring out the correct motion
+ */
void move();
void postUpdate();
@@ -99,7 +101,7 @@ private:
*/
void startMovement();
- void dirChanged();
+ void changeFacing();
public:
MADSAction *_action;
@@ -121,11 +123,11 @@ public:
bool _loadsFirst;
bool _loadedFirst;
Common::Point _playerPos;
- Common::Point _destPos;
+ Common::Point _targetPos;
Common::Point _posChange;
Common::Point _posDiff;
bool _moving;
- int _newSceneId, _v844BE;
+ int _walkOffScreen, _walkOffScreenSceneId;
int _next;
int _special;
int _ticksAmount;
@@ -133,7 +135,7 @@ public:
int _velocity;
int _upcomingTrigger;
int _trigger;
- bool _unk4;
+ bool _scalingVelocity;
bool _forceRefresh;
int _centerOfGravity;
int _currentDepth;