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

Method SetFormationPos

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

Source from the content-addressed store, hash-verified

1726 AIGroup* group = unit->GetGroup();
1727 if (!group)
1728 {
1729 return;
1730 }
1731 if (unit->IsGroupLeader())
1732 {
1733 group->SendState(new RadioMessageFormationPos(group, ListSelectedUnits(), status));
1734 }
1735 ClearSelectedUnits();
1736}
1737
1738void InGameUI::ShowHint(RString hint)
1739{
1740 _hint->SetHint(hint);
1741 _hintTime = Glob.uiTime;
1742 if (hint.GetLength() > 0 && _hintSound.name.GetLength() > 0)
1743 {
1744 IWave* wave = GSoundScene->OpenAndPlayOnce2D(_hintSound.name, _hintSound.vol, _hintSound.freq, false);
1745 if (wave)
1746 {
1747 wave->SetKind(WaveMusic); // UI sounds considered music???

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