| 365 | } |
| 366 | |
| 367 | int32 b2ParticleSystem::InsideBoundsEnumerator::GetNext() |
| 368 | { |
| 369 | while (m_first < m_last) |
| 370 | { |
| 371 | uint32 xTag = m_first->tag & xMask; |
| 372 | #if B2_ASSERT_ENABLED |
| 373 | uint32 yTag = m_first->tag & yMask; |
| 374 | b2Assert(yTag >= m_yLower); |
| 375 | b2Assert(yTag <= m_yUpper); |
| 376 | #endif |
| 377 | if (xTag >= m_xLower && xTag <= m_xUpper) |
| 378 | { |
| 379 | return (m_first++)->index; |
| 380 | } |
| 381 | m_first++; |
| 382 | } |
| 383 | return b2_invalidParticleIndex; |
| 384 | } |
| 385 | |
| 386 | b2ParticleSystem::b2ParticleSystem(const b2ParticleSystemDef* def, |
| 387 | b2World* world) : |
no outgoing calls
no test coverage detected