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

Method AdditionalTestSetup

tests/test_unit_command.cc:312–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310 }
311
312 void AdditionalTestSetup() override {
313 target_point_ = GetPointOffsetX(origin_pt_);
314
315 agent_->Debug()->DebugCreateUnit(UNIT_TYPEID::PROTOSS_PYLON, origin_pt_, agent_->Observation()->GetPlayerID(), 1);
316 agent_->Debug()->SendDebug();
317 }
318
319 void OnTestFinish() override {
320 VerifyUnitExistsAndComplete(UNIT_TYPEID::PROTOSS_GATEWAY);

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