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

Method create

core/2d/ActionTiledGrid.cpp:45–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43// implementation of ShakyTiles3D
44
45ShakyTiles3D* ShakyTiles3D::create(float duration, const Vec2& gridSize, int range, bool shakeZ)
46{
47 ShakyTiles3D* action = new ShakyTiles3D();
48
49 if (action->initWithDuration(duration, gridSize, range, shakeZ))
50 {
51 action->autorelease();
52 return action;
53 }
54
55 delete action;
56 return nullptr;
57}
58
59bool ShakyTiles3D::initWithDuration(float duration, const Vec2& gridSize, int range, bool shakeZ)
60{

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initWithDurationMethod · 0.45

Tested by

no test coverage detected