----------------------------------------------------------------------------------------------------------
| 70 | } |
| 71 | //---------------------------------------------------------------------------------------------------------- |
| 72 | Unit GameImpl::indexToUnit(int unitIndex) const |
| 73 | { |
| 74 | if ( !this->isFlagEnabled(Flag::CompleteMapInformation) ) |
| 75 | return nullptr; |
| 76 | int i = (unitIndex & 0x7FF); |
| 77 | if (i < BW::UNIT_ARRAY_MAX_LENGTH && this->unitArray[i]->canAccess()) |
| 78 | return this->unitArray[i]; |
| 79 | return nullptr; |
| 80 | } |
| 81 | //--------------------------------------------- GET GAME TYPE ---------------------------------------------- |
| 82 | GameType GameImpl::getGameType() const |
| 83 | { |
no test coverage detected