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

Method create

core/2d/ActionEase.cpp:109–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107//
108
109EaseRateAction* EaseRateAction::create(ActionInterval* action, float rate)
110{
111 AXASSERT(action != nullptr, "action cannot be nullptr!");
112
113 EaseRateAction* easeRateAction = new EaseRateAction();
114 if (easeRateAction->initWithAction(action, rate))
115 {
116 easeRateAction->autorelease();
117 return easeRateAction;
118 }
119
120 AX_SAFE_DELETE(easeRateAction);
121 return nullptr;
122}
123
124bool EaseRateAction::initWithAction(ActionInterval* action, float rate)
125{

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initWithActionMethod · 0.45

Tested by

no test coverage detected