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

Method AdditionalTestSetup

tests/test_unit_command.cc:376–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374 }
375
376 void AdditionalTestSetup() override {
377 order_on_game_loop_ += 300;
378 target_point_ = GetPointOffsetX(origin_pt_, -8);
379
380 agent_->Debug()->DebugCreateUnit(UNIT_TYPEID::ZERG_CREEPTUMORBURROWED, GetPointOffsetX(origin_pt_, -10), agent_->Observation()->GetPlayerID(), 1);
381 agent_->Debug()->SendDebug();
382 }
383
384 void OnTestFinish() override {
385 VerifyUnitExistsAndComplete(UNIT_TYPEID::ZERG_SPINECRAWLER);

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