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

Method OnTestStart

tests/test_unit_command_common.cc:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 //
14
15 void TestUnitCommand::OnTestStart() {
16 SetTestTime();
17 order_on_game_loop_ = agent_->Observation()->GetGameLoop() + 10;
18 SetOriginPoint();
19
20 agent_->Debug()->DebugCreateUnit(test_unit_type_, origin_pt_, agent_->Observation()->GetPlayerID(), 1);
21 agent_->Debug()->SendDebug();
22 AdditionalTestSetup();
23 }
24
25 void TestUnitCommand::OnStep() {
26 const ObservationInterface* obs = agent_->Observation();

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected