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

Method OnTestsBegin

tests/test_unit_command.cc:1780–1793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1778}
1779
1780void UnitCommandTestBot::OnTestsBegin() {
1781 Point2D map_center;
1782
1783 map_center = FindCenterOfMap(Observation()->GetGameInfo());
1784
1785 Debug()->DebugEnemyControl();
1786 Debug()->DebugShowMap();
1787 Debug()->DebugMoveCamera(map_center);
1788 Debug()->DebugGiveAllResources();
1789 Debug()->DebugIgnoreFood();
1790 Debug()->DebugGiveAllTech();
1791 Debug()->DebugGiveAllUpgrades();
1792 Debug()->DebugFastBuild();
1793};
1794
1795void UnitCommandTestBot::OnTestsEnd () {
1796

Callers

nothing calls this directly

Calls 10

FindCenterOfMapFunction · 0.85
ObservationClass · 0.85
DebugEnemyControlMethod · 0.80
DebugShowMapMethod · 0.80
DebugMoveCameraMethod · 0.80
DebugGiveAllResourcesMethod · 0.80
DebugIgnoreFoodMethod · 0.80
DebugGiveAllTechMethod · 0.80
DebugGiveAllUpgradesMethod · 0.80
DebugFastBuildMethod · 0.80

Tested by

no test coverage detected