MCPcopy Create free account
hub / github.com/doldecomp/mkdd / createParticle

Method createParticle

libs/JSystem/JParticle/JPAEmitter.cpp:57–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57JPABaseParticle *JPABaseEmitter::createParticle()
58{
59 if (mPtclPool->mNum != 0) {
60 JPANode<JPABaseParticle>* node = mPtclPool->pop_front();
61 mAlivePtclBase.push_front(node);
62 mResource->getDyn()->calc(mManager->pWd);
63 node->mData.init_p(mManager->pWd);
64 return &node->mData;
65 }
66 else {
67// Line 128 in TP Debug
68#line 125
69 JUT_WARNING_F2("%s", "JPA : Can NOT create particle more\n");
70 }
71
72 return nullptr;
73}
74
75JPABaseParticle *JPABaseEmitter::createChild(JPABaseParticle *parent)
76{

Callers 1

createMethod · 0.80

Calls 5

pop_frontMethod · 0.80
push_frontMethod · 0.80
getDynMethod · 0.80
init_pMethod · 0.80
calcMethod · 0.45

Tested by

no test coverage detected