MCPcopy Create free account
hub / github.com/Blizzard/s2client-api / AdditionalTestSetup

Method AdditionalTestSetup

tests/test_unit_command.cc:594–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592 }
593
594 void AdditionalTestSetup() override {
595 agent_->Debug()->DebugCreateUnit(target_unit_type_, GetPointOffsetX(origin_pt_, 10), agent_->Observation()->GetPlayerID(), 1);
596 agent_->Debug()->SendDebug();
597 }
598
599 void OnStep() override {
600 const ObservationInterface* obs = agent_->Observation();

Callers

nothing calls this directly

Calls 5

DebugCreateUnitMethod · 0.80
DebugMethod · 0.80
GetPlayerIDMethod · 0.80
ObservationMethod · 0.80
SendDebugMethod · 0.80

Tested by

no test coverage detected