MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / create

Method create

Source/CurrencyRewardLayer.cpp:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26USING_NS_AX;
27
28CurrencyRewardLayer* CurrencyRewardLayer::create(int orbs, int stars, int diamonds)
29{
30 auto pRet = new (std::nothrow) CurrencyRewardLayer();
31 if (pRet && pRet->init(orbs, stars, diamonds)) {
32 pRet->autorelease();
33 return pRet;
34 }
35 AX_SAFE_DELETE(pRet);
36 return pRet;
37}
38
39bool CurrencyRewardLayer::init(int orbs, int stars, int diamonds)
40{

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected