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

Method initWithAction

core/2d/ActionEase.cpp:50–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48//
49
50bool ActionEase::initWithAction(ActionInterval* action)
51{
52 AXASSERT(action != nullptr, "action couldn't be nullptr!");
53 if (action == nullptr)
54 {
55 return false;
56 }
57
58 if (ActionInterval::initWithDuration(action->getDuration()))
59 {
60 _inner = action;
61 action->retain();
62
63 return true;
64 }
65
66 return false;
67}
68
69ActionEase::~ActionEase()
70{

Callers 2

createMethod · 0.45
ActionEase.cppFile · 0.45

Calls 2

getDurationMethod · 0.45
retainMethod · 0.45

Tested by

no test coverage detected