| 21 | #include "SpriteColor.h" |
| 22 | |
| 23 | ColorAction* ColorAction::create(float duration, SpriteColor* target, ax::Color3B from, ax::Color3B to, float afrom , |
| 24 | float ato, int copyColor, GDHSV* hsv) |
| 25 | { |
| 26 | ColorAction* ret = new ColorAction(); |
| 27 | if (ret->initWithDuration(duration, target, from, to, afrom, ato, copyColor, hsv)) |
| 28 | { |
| 29 | ret->autorelease(); |
| 30 | return ret; |
| 31 | } |
| 32 | |
| 33 | delete ret; |
| 34 | return nullptr; |
| 35 | } |
| 36 | |
| 37 | bool ColorAction::initWithDuration(float duration, SpriteColor* target, ax::Color3B from, ax::Color3B to, |
| 38 | float afrom, float ato, int copyColor, GDHSV* hsv) |
nothing calls this directly
no test coverage detected