diff options
author | Andrei Prykhodko | 2018-06-23 16:26:24 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 633649398f3901b00bd8de7bc113f52971ccd940 (patch) | |
tree | 0be027a5def354409cf5647cae8a0caf768e2298 /engines/pink/objects/actions/walk_action.h | |
parent | ab44490673e2b8c04ba1ebe0a0ceb476f413a5b9 (diff) | |
download | scummvm-rg350-633649398f3901b00bd8de7bc113f52971ccd940.tar.gz scummvm-rg350-633649398f3901b00bd8de7bc113f52971ccd940.tar.bz2 scummvm-rg350-633649398f3901b00bd8de7bc113f52971ccd940.zip |
PINK: added position recalculation of walking sprites
Diffstat (limited to 'engines/pink/objects/actions/walk_action.h')
-rw-r--r-- | engines/pink/objects/actions/walk_action.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/pink/objects/actions/walk_action.h b/engines/pink/objects/actions/walk_action.h index d311b9e9bb..b49bb45530 100644 --- a/engines/pink/objects/actions/walk_action.h +++ b/engines/pink/objects/actions/walk_action.h @@ -35,10 +35,19 @@ public: void update() override; + void setWalkMgr(WalkMgr *mgr) { _mgr = mgr; } + void setType(bool horizontal) { _horizontal = horizontal; } + protected: void onStart() override; private: + WalkMgr *_mgr; + Common::Point _start; + Common::Point _end; + uint _curFrame; + uint _frameCount; + bool _horizontal; bool _toCalcFramePositions; }; |