| 2662 | } |
| 2663 | |
| 2664 | bool TargetedAction::initWithTarget(Node* target, FiniteTimeAction* action) |
| 2665 | { |
| 2666 | if (ActionInterval::initWithDuration(action->getDuration())) |
| 2667 | { |
| 2668 | AX_SAFE_RETAIN(target); |
| 2669 | _forcedTarget = target; |
| 2670 | AX_SAFE_RETAIN(action); |
| 2671 | _action = action; |
| 2672 | return true; |
| 2673 | } |
| 2674 | return false; |
| 2675 | } |
| 2676 | |
| 2677 | TargetedAction* TargetedAction::clone() const |
| 2678 | { |
no test coverage detected