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

Class TestBuildBarracks

tests/test_unit_command.cc:84–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 //
83
84 class TestBuildBarracks : public TestUnitCommandTargetingPoint {
85 public:
86 TestBuildBarracks() {
87 test_unit_type_ = UNIT_TYPEID::TERRAN_SCV;
88 test_ability_ = ABILITY_ID::BUILD_BARRACKS;
89 placing_structure_ = true;
90 }
91
92 void SetTestTime() override {
93 wait_game_loops_ = 150;
94 }
95
96 void OnTestFinish() override {
97 VerifyUnitExistsAndComplete(UNIT_TYPEID::TERRAN_BARRACKS);
98 VerifyUnitIdleAfterOrder(test_unit_type_);
99 VerifyUnitIdleAfterOrder(UNIT_TYPEID::TERRAN_BARRACKS);
100 KillAllUnits();
101 }
102 };
103
104
105 //

Callers 1

UnitCommandTestBotMethod · 0.85

Calls

no outgoing calls

Tested by 1

UnitCommandTestBotMethod · 0.68