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

Method createChild

libs/JSystem/JParticle/JPAEmitter.cpp:75–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75JPABaseParticle *JPABaseEmitter::createChild(JPABaseParticle *parent)
76{
77 if (mPtclPool->mNum != 0) {
78 JPANode<JPABaseParticle>* node = mPtclPool->pop_front();
79 mAlivePtclChld.push_front(node);
80 node->getObject()->init_c(mManager->pWd, parent);
81 return &node->mData;
82 }
83 else {
84// Line 151 in TP Debug
85#line 148
86 JUT_WARNING_F2("%s", "JPA : Can NOT create child particle more\n");
87 }
88
89 return nullptr;
90}
91
92void JPABaseEmitter::deleteAllParticle()
93{

Callers 1

calc_pMethod · 0.80

Calls 4

pop_frontMethod · 0.80
push_frontMethod · 0.80
init_cMethod · 0.80
getObjectMethod · 0.45

Tested by

no test coverage detected