| 214 | } |
| 215 | |
| 216 | void drawStats() |
| 217 | { |
| 218 | int line = 0; |
| 219 | Broodwar->drawTextScreen(5, 0, "I have %d units:", Broodwar->self()->allUnitCount() ); |
| 220 | for (auto& unitType : UnitTypes::allUnitTypes()) |
| 221 | { |
| 222 | int count = Broodwar->self()->allUnitCount(unitType); |
| 223 | if ( count ) |
| 224 | { |
| 225 | Broodwar->drawTextScreen(5, 16*line, "- %d %s%c", count, unitType.c_str(), count == 1 ? ' ' : 's'); |
| 226 | ++line; |
| 227 | } |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | void drawBullets() |
| 232 | { |
no test coverage detected