MCPcopy Create free account
hub / github.com/axmolengine/axmol / initWithTarget

Method initWithTarget

core/2d/ActionInterval.cpp:2664–2675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2662}
2663
2664bool 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
2677TargetedAction* TargetedAction::clone() const
2678{

Callers 2

createMethod · 0.45
reverseMethod · 0.45

Calls 1

getDurationMethod · 0.45

Tested by

no test coverage detected