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

Method create

Source/GJChestSprite.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31int GJChestSprite::_chestID = 0;
32
33GJChestSprite* 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
45bool GJChestSprite::switchState(int state, bool idk)
46{

Callers

nothing calls this directly

Calls 1

switchStateMethod · 0.80

Tested by

no test coverage detected