| 6 | #include "types.h" |
| 7 | |
| 8 | void JPAFieldBase::calcAffect(JPAFieldBlock *block, JPABaseParticle *particle) |
| 9 | { |
| 10 | JGeometry::TVec3f vec = _04; |
| 11 | if (!particle->checkStatus(0x4) && block->checkStatus(0x8 | 0x30 | 0x40)) { |
| 12 | vec.scale(calcFadeAffect(block, particle->mTime)); |
| 13 | } |
| 14 | |
| 15 | switch (block->getAddType()) { |
| 16 | case 0: |
| 17 | particle->mVelType0.add(vec); |
| 18 | break; |
| 19 | case 1: |
| 20 | particle->mVelType1.add(vec); |
| 21 | break; |
| 22 | case 2: |
| 23 | particle->mVelType2.add(vec); |
| 24 | break; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | f32 JPAFieldBase::calcFadeAffect(JPAFieldBlock *block, f32 time) const |
| 29 | { |
nothing calls this directly
no test coverage detected