| 111 | } |
| 112 | |
| 113 | bool 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 | |
| 139 | void JPABaseEmitter::calcEmitterGlobalPosition(JGeometry::TVec3f *pos) const |
| 140 | { |