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

Method SetUnitPosition

engine/Poseidon/UI/InGame/InGameUIMenuSim.cpp:1710–1726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1708 AIGroup* group = unit->GetGroup();
1709 if (!group)
1710 {
1711 return;
1712 }
1713 if (unit->IsGroupLeader())
1714 {
1715 group->SendState(new RadioMessageUnitPos(group, ListSelectedUnits(), status));
1716 }
1717 ClearSelectedUnits();
1718}
1719
1720void InGameUI::SetFormationPos(AIUnit* unit, AI::FormationPos status)
1721{
1722 if (!unit)
1723 {
1724 return;
1725 }
1726 AIGroup* group = unit->GetGroup();
1727 if (!group)
1728 {
1729 return;

Callers

nothing calls this directly

Calls 5

ListSelectedUnitsFunction · 0.85
ClearSelectedUnitsFunction · 0.85
IsGroupLeaderMethod · 0.80
SendStateMethod · 0.80
GetGroupMethod · 0.45

Tested by

no test coverage detected