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

Method NotifyAutoCommand

engine/Poseidon/AI/AIGroupCmd.cpp:1284–1293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1282 IssueCommand(cmd, list);
1283}
1284void AIGroup::NotifyAutoCommand(Command& cmd, AIUnit* unit)
1285{
1286 // unit is not able to issue any commands when it is not alive
1287 if (unit->GetLifeState() != AIUnit::LSAlive)
1288 {
1289 return;
1290 }
1291 IssueAutoCommand(cmd, unit);
1292 GetRadio().Transmit(new RadioMessageNotifyCommand(unit, this, cmd), GetCenter()->GetLanguage());
1293}
1294
1295void AIGroup::ReceiveUnitStatus(AIUnit* unit, Answer answer)
1296{

Callers 1

SetWatchMethod · 0.80

Calls 3

GetCenterFunction · 0.85
GetLifeStateMethod · 0.80
GetLanguageMethod · 0.45

Tested by

no test coverage detected