| 18 | namespace 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); |
nothing calls this directly
no test coverage detected