MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / wounded_processed

Method wounded_processed

ogsr_engine/xrGame/agent_enemy_manager.cpp:653–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653void CAgentEnemyManager::wounded_processed(const CEntityAlive* object, bool value)
654{
655 VERIFY(value);
656 WOUNDED_ENEMIES::iterator I = std::find_if(m_wounded.begin(), m_wounded.end(), find_wounded_predicate(object));
657 if (I == m_wounded.end())
658 return;
659 VERIFY((*I).second.first != ALife::_OBJECT_ID(-1));
660 VERIFY(!(*I).second.second);
661 (*I).second.second = true;
662}
663
664bool CAgentEnemyManager::wounded_processed(const CEntityAlive* object) const
665{

Callers 3

should_processFunction · 0.80
executeMethod · 0.80
initializeMethod · 0.80

Calls 4

find_ifClass · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected