| 5 | #include "BaseGameLayer.h" |
| 6 | |
| 7 | class GroupColorAction : public ax::ActionInterval |
| 8 | { |
| 9 | private: |
| 10 | ax::Color3B _from, _to; |
| 11 | GroupProperties* _target; |
| 12 | |
| 13 | float _deltar, _deltag, _deltab; |
| 14 | |
| 15 | bool _resetGroupState = false; |
| 16 | |
| 17 | public: |
| 18 | static GroupColorAction* create(float duration, GroupProperties* target, ax::Color3B from, ax::Color3B to, bool resetGroupState); |
| 19 | |
| 20 | void startWithTarget(ax::Node* target) override; |
| 21 | void update(float dt) override; |
| 22 | |
| 23 | bool initWithDuration(float duration, GroupProperties* target, ax::Color3B from, ax::Color3B to, bool resetGroupState); |
| 24 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected