MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / CargoGetOut

Method CargoGetOut

engine/Poseidon/AI/AIGroupImpl.cpp:1533–1543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1531}
1532
1533void AIGroup::CargoGetOut()
1534{
1535 for (int i = 0; i < MAX_UNITS_PER_GROUP; i++)
1536 {
1537 AIUnit* unit = _units[i];
1538 if (unit && unit->IsInCargo())
1539 {
1540 unit->AllowGetIn(false);
1541 }
1542 }
1543}
1544
1545Target* AIGroup::FindTargetAll(TargetType* id) const
1546{

Callers

nothing calls this directly

Calls 2

IsInCargoMethod · 0.80
AllowGetInMethod · 0.80

Tested by

no test coverage detected