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

Method GameImpl

bwapi/BWAPIClient/Source/GameImpl.cpp:20–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace BWAPI
19{
20 GameImpl::GameImpl(GameData* _data)
21 : data(_data)
22 {
23 this->clearAll();
24 for(int i = 0; i < 5; ++i)
25 forceVector.push_back(ForceImpl(i));
26 for(int i = 0; i < 12; ++i)
27 playerVector.push_back(PlayerImpl(i));
28 // @TODO: Possible to exceed 10000 here
29 for(int i = 0; i < 10000; ++i)
30 unitVector.push_back(UnitImpl(i));
31 for(int i = 0; i < 100; ++i)
32 bulletVector.push_back(BulletImpl(i));
33
34 inGame = false;
35 }
36 int GameImpl::addShape(const BWAPIC::Shape &s)
37 {
38 assert(data->shapeCount < GameData::MAX_SHAPES);

Callers

nothing calls this directly

Calls 5

clearAllMethod · 0.95
ForceImplClass · 0.50
PlayerImplClass · 0.50
UnitImplClass · 0.50
BulletImplClass · 0.50

Tested by

no test coverage detected