MCPcopy Create free account
hub / github.com/bwapi/bwapi / onStart

Method onStart

bwapi/TestAIModule/Source/ExistenceTest.cpp:4–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2using namespace std;
3using namespace BWAPI;
4void ExistenceTest::onStart()
5{
6 BWAssert(Broodwar->isMultiplayer()==false);
7 BWAssert(Broodwar->isReplay()==false);
8 Broodwar->enableFlag(Flag::UserInput);
9 Broodwar->sendText("show me the money");
10}
11void ExistenceTest::onFrame()
12{
13 for (Unit u : Broodwar->getAllUnits())

Callers

nothing calls this directly

Calls 4

sendTextMethod · 0.80
isMultiplayerMethod · 0.45
isReplayMethod · 0.45
enableFlagMethod · 0.45

Tested by

no test coverage detected