--------------------------------------------- SUPPLY TOTAL -----------------------------------------------
| 67 | } |
| 68 | //--------------------------------------------- SUPPLY TOTAL ----------------------------------------------- |
| 69 | int PlayerImpl::supplyTotal(Race race) const |
| 70 | { |
| 71 | if ( race == Races::None ) // Get current race's supply if None is specified |
| 72 | race = this->getRace(); |
| 73 | |
| 74 | if (static_cast<unsigned>(race) < std::extent<decltype(self->supplyTotal)>::value) |
| 75 | return self->supplyTotal[race]; |
| 76 | return 0; |
| 77 | } |
| 78 | //--------------------------------------------- SUPPLY USED ------------------------------------------------ |
| 79 | int PlayerImpl::supplyUsed(Race race) const |
| 80 | { |