| 22 | #include "2d/ActionTween.h" |
| 23 | |
| 24 | class GroupCommandObject : public ax::Node, public ax::ActionTweenDelegate |
| 25 | { |
| 26 | public: |
| 27 | ax::Point _oldPos; |
| 28 | ax::Point _currentOffset; |
| 29 | ax::Point _newPos; |
| 30 | ax::Point _unkPoint; |
| 31 | ax::Point _finalPoint; |
| 32 | |
| 33 | int _groupID; |
| 34 | int _actionID; |
| 35 | |
| 36 | float _elapsed, _duration, _delta1, _delta2; |
| 37 | |
| 38 | bool _followPlayerX, _followPlayerY; |
| 39 | bool _actionDone, _actionDoneForNextLoop; |
| 40 | |
| 41 | ax::Action *_action1, *_action2; |
| 42 | |
| 43 | void runMoveCommand(float duration, ax::Point offsetPos, int easeType, float easeAmt); |
| 44 | void step(float dt); |
| 45 | virtual void updateTweenAction(float value, std::string_view key) override; |
| 46 | |
| 47 | static GroupCommandObject *create(); |
| 48 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected