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

Method ClearSelection

engine/Poseidon/AI/ArcadeTemplateFind.cpp:1372–1402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1370}
1371
1372void ArcadeTemplate::ClearSelection()
1373{
1374 for (int i = 0; i < emptyVehicles.Size(); i++)
1375 {
1376 emptyVehicles[i].selected = false;
1377 }
1378 for (int i = 0; i < sensors.Size(); i++)
1379 {
1380 sensors[i].selected = false;
1381 }
1382 for (int i = 0; i < markers.Size(); i++)
1383 {
1384 markers[i].selected = false;
1385 }
1386 for (int i = 0; i < groups.Size(); i++)
1387 {
1388 ArcadeGroupInfo& gInfo = groups[i];
1389 for (int j = 0; j < gInfo.units.Size(); j++)
1390 {
1391 gInfo.units[j].selected = false;
1392 }
1393 for (int j = 0; j < gInfo.sensors.Size(); j++)
1394 {
1395 gInfo.sensors[j].selected = false;
1396 }
1397 for (int j = 0; j < gInfo.waypoints.Size(); j++)
1398 {
1399 gInfo.waypoints[j].selected = false;
1400 }
1401 }
1402}
1403
1404} // namespace Poseidon

Callers 8

OnLButtonClickMethod · 0.80
OnLButtonUpMethod · 0.80
ClipboardPasteMethod · 0.80
OnLButtonDownMethod · 0.80
OnLButtonUpMethod · 0.80
OnLButtonClickMethod · 0.80
OnChildDestroyedMethod · 0.80

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected