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

Method OnTestStart

tests/test_feature_layer.cc:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18public:
19
20 void OnTestStart() override {
21 const GameInfo& game_info = agent_->Observation()->GetGameInfo();
22 Point2D spawn_pt = FindRandomLocation(game_info);
23 agent_->Debug()->DebugCreateUnit(UNIT_TYPEID::TERRAN_MARINE, spawn_pt, agent_->Observation()->GetPlayerID(), 1);
24 agent_->Debug()->SendDebug();
25
26 wait_game_loops_ = 5;
27 }
28
29 void OnStep() override {
30

Callers

nothing calls this directly

Calls 6

FindRandomLocationFunction · 0.85
ObservationMethod · 0.80
DebugCreateUnitMethod · 0.80
DebugMethod · 0.80
GetPlayerIDMethod · 0.80
SendDebugMethod · 0.80

Tested by

no test coverage detected