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

Method AllowGetIn

engine/Poseidon/AI/AIUnitImpl.cpp:2575–2591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2573void AIUnit::AllowGetIn(bool flag)
2574{
2575 _getInAllowed = flag;
2576 if (!flag)
2577 {
2578 AISubgroup* subgrp = GetSubgroup();
2579 if (subgrp)
2580 {
2581 subgrp->ClearGetInCommands();
2582 AIGroup* grp = subgrp->GetGroup();
2583 if (grp)
2584 {
2585 grp->ClearGetInCommands(this);
2586 }
2587 }
2588 }
2589}
2590
2591void AIUnit::UnassignVehicle()
2592{
2593 if (_vehicleAssigned)
2594 {

Callers 9

AllowGetInFunction · 0.80
ArcadeGetInGetInFunction · 0.80
AllGetOutMethod · 0.80
CargoGetOutMethod · 0.80
IssueCommandMethod · 0.80
IssueGetInMethod · 0.80
ProcessMethod · 0.80
ListAllowGetInFunction · 0.80

Calls 2

ClearGetInCommandsMethod · 0.45
GetGroupMethod · 0.45

Tested by

no test coverage detected