MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / BoundCheck

Method BoundCheck

LuaSTGPlus/GameObjectPool.cpp:373–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373bool 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

Callers

nothing calls this directly

Calls 2

GetBoundMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected