| 26 | USING_NS_AX; |
| 27 | |
| 28 | CurrencyRewardLayer* 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 | |
| 39 | bool CurrencyRewardLayer::init(int orbs, int stars, int diamonds) |
| 40 | { |