--------------------------------------------- SUPPLY USED ------------------------------------------------
| 77 | } |
| 78 | //--------------------------------------------- SUPPLY USED ------------------------------------------------ |
| 79 | int PlayerImpl::supplyUsed(Race race) const |
| 80 | { |
| 81 | if ( race == Races::None ) // Get current race's supply if None is specified |
| 82 | race = this->getRace(); |
| 83 | |
| 84 | if (static_cast<unsigned>(race) < std::extent<decltype(self->supplyUsed)>::value) |
| 85 | return self->supplyUsed[race]; |
| 86 | return 0; |
| 87 | } |
| 88 | //--------------------------------------------- ALL UNIT COUNT --------------------------------------------- |
| 89 | int PlayerImpl::allUnitCount(UnitType unit) const |
| 90 | { |