| 371 | } |
| 372 | |
| 373 | bool GameObjectBentLaser::BoundCheck()LNOEXCEPT |
| 374 | { |
| 375 | fcyRect tBound = LPOOL.GetBound(); |
| 376 | for (size_t i = 0; i < m_Queue.Size(); ++i) |
| 377 | { |
| 378 | LaserNode& n = m_Queue[i]; |
| 379 | if (n.pos.x >= tBound.a.x && n.pos.x <= tBound.b.x && n.pos.y <= tBound.a.y && n.pos.y >= tBound.b.y) |
| 380 | return true; |
| 381 | } |
| 382 | // Խ��ʱ����false��ֻ�е����еĵ�ĻԽ��ŷ���false |
| 383 | return false; |
| 384 | } |
| 385 | |
| 386 | //////////////////////////////////////////////////////////////////////////////// |
| 387 | /// GameObject |