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

Method ProcessAction

engine/Poseidon/UI/InGame/InGameUIActions.cpp:727–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725}
726
727void UIActions::ProcessAction(AIUnit* unit)
728{
729 PoseidonAssert(unit);
730
731 int i = FindSelected();
732 if (i < 0)
733 {
734 return;
735 }
736 const UIAction& action = Get(i);
737 if (action.hideOnUse)
738 {
739 Hide();
740 _selected.type = ATNone;
741 }
742 unit->GetVehicle()->StartActionProcessing(action, unit);
743}
744
745int CmpActions(const UIAction* action1, const UIAction* action2)
746{

Callers 1

ProcessActionsMethod · 0.80

Calls 3

GetFunction · 0.50
StartActionProcessingMethod · 0.45
GetVehicleMethod · 0.45

Tested by

no test coverage detected