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

Method onStart

bwapi/TestAIModule/Source/DefaultTestModule.cpp:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4std::map<Unit ,Order> lastOrder;
5std::map<Unit ,list<Order> > lastDistinctOrders;
6void DefaultTestModule::onStart()
7{
8 BWAssert(Broodwar->isMultiplayer()==false);
9 BWAssert(Broodwar->isReplay()==false);
10 Broodwar->enableFlag(Flag::CompleteMapInformation);
11 Broodwar->enableFlag(Flag::UserInput);
12 Broodwar->sendText("show me the money");
13 Broodwar->sendText("operation cwal");
14}
15void DefaultTestModule::onFrame()
16{
17 if (Broodwar->getFrameCount()==0) return;

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