| 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) |
| 39 | { |
| 40 | if (ActionInterval::initWithDuration(duration)) |
| 41 | { |
| 42 | _hsv = hsv; |
| 43 | _copyColorId = copyColor; |
| 44 | _target = target; |
| 45 | _to = to; |
| 46 | _from = from; |
| 47 | _afrom = afrom; |
| 48 | _ato = ato; |
| 49 | return true; |
| 50 | } |
| 51 | |
| 52 | return false; |
| 53 | } |
| 54 | |
| 55 | void ColorAction::startWithTarget(ax::Node* target) |
| 56 | { |