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

Method processTermination

libs/JSystem/JParticle/JPAEmitter.cpp:113–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113bool JPABaseEmitter::processTermination()
114{
115 if (checkStatus(JPAEMIT_ForceDelete)) {
116 return true;
117 }
118
119 if (mMaxFrame == 0) {
120 return false;
121 }
122
123 if (mMaxFrame < 0) {
124 setFlag(JPAEMIT_EnableDeleteEmitter);
125 return getParticleNumber() == 0;
126 }
127
128 if (mCurrentFrame >= mMaxFrame) {
129 setFlag(JPAEMIT_EnableDeleteEmitter);
130 if (checkStatus(JPAEMIT_Immortal)) {
131 return 0;
132 }
133 return getParticleNumber() == 0;
134 }
135
136 return false;
137}
138
139void JPABaseEmitter::calcEmitterGlobalPosition(JGeometry::TVec3f *pos) const
140{

Callers 1

calcMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected