| 31 | int GJChestSprite::_chestID = 0; |
| 32 | |
| 33 | GJChestSprite* GJChestSprite::create(int chestID) { |
| 34 | auto pRet = new (std::nothrow) GJChestSprite(); |
| 35 | _chestID = chestID; |
| 36 | |
| 37 | if (pRet && pRet->switchState(2, false)) { |
| 38 | pRet->autorelease(); |
| 39 | return pRet; |
| 40 | } |
| 41 | AX_SAFE_DELETE(pRet); |
| 42 | return pRet; |
| 43 | } |
| 44 | |
| 45 | bool GJChestSprite::switchState(int state, bool idk) |
| 46 | { |
nothing calls this directly
no test coverage detected