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

Method AdditionalTestSetup

tests/test_unit_command.cc:280–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278 }
279
280 void AdditionalTestSetup() override {
281 target_point_ = GetPointOffsetX(origin_pt_);
282
283 agent_->Debug()->DebugCreateUnit(UNIT_TYPEID::PROTOSS_PYLON, origin_pt_, agent_->Observation()->GetPlayerID(), 1);
284 agent_->Debug()->SendDebug();
285 }
286
287 void OnTestFinish() override {
288 VerifyUnitExistsAndComplete(UNIT_TYPEID::PROTOSS_FORGE);

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