| 25 | class SpriteColor; |
| 26 | |
| 27 | class ColorAction : public ax::ActionInterval |
| 28 | { |
| 29 | private: |
| 30 | ax::Color3B _from, _to; |
| 31 | float _afrom, _ato; |
| 32 | SpriteColor* _target; |
| 33 | GDHSV* _hsv; |
| 34 | |
| 35 | int _copyColorId; |
| 36 | |
| 37 | float _deltar, _deltag, _deltab, _deltaa; |
| 38 | |
| 39 | public: |
| 40 | static ColorAction* create(float duration, SpriteColor* target, ax::Color3B from, ax::Color3B to, float afrom = -1, float ato = -1, int copyColor = -1, GDHSV* hsv = nullptr); |
| 41 | |
| 42 | void startWithTarget(ax::Node* target) override; |
| 43 | void update(float dt) override; |
| 44 | |
| 45 | bool initWithDuration(float duration, SpriteColor* target, ax::Color3B from, ax::Color3B to, float afrom = -1, float ato = -1, int copyColor = -1, GDHSV* hsv = nullptr); |
| 46 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected