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

Function population

ogsr_engine/xrGame/agent_enemy_manager.cpp:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28const float wounded_enemy_reached_distance = 3.f;
29
30IC u32 population(const squad_mask_type& b)
31{
32 std::bitset<std::numeric_limits<squad_mask_type>::digits> mask(b);
33 return mask.count();
34}
35
36struct CEnemyFiller
37{

Callers 1

assign_woundedMethod · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected