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

Method UnitDelete

engine/Poseidon/AI/ArcadeTemplateFind.cpp:214–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void ArcadeTemplate::UnitDelete(int ig, int iu)
215{
216 if (ig == -1)
217 {
218 emptyVehicles.Delete(iu);
219 }
220 else
221 {
222 ArcadeGroupInfo& gInfo = groups[ig];
223 gInfo.units.Delete(iu);
224 if (gInfo.units.Size() == 0)
225 {
226 groups.Delete(ig);
227 }
228 else
229 {
230 SelectLeader(gInfo);
231 }
232 }
233}
234
235void ArcadeTemplate::WaypointDelete(int ig, int iw)
236{

Callers 1

OnKeyDownMethod · 0.80

Calls 3

SelectLeaderFunction · 0.85
DeleteMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected