--------------------------------------------- IS FLAG ENABLED --------------------------------------------
| 217 | } |
| 218 | //--------------------------------------------- IS FLAG ENABLED -------------------------------------------- |
| 219 | bool GameImpl::isFlagEnabled(int flag) const |
| 220 | { |
| 221 | // Check if index is valid |
| 222 | if ( flag < 0 || flag >= BWAPI::Flag::Max ) |
| 223 | return false; |
| 224 | |
| 225 | // Make completeMapInfo appear true if the match has ended |
| 226 | if ( flag == Flag::CompleteMapInformation && this->calledMatchEnd ) |
| 227 | return true; |
| 228 | |
| 229 | // Return the state of the flag |
| 230 | return this->flags[flag]; |
| 231 | } |
| 232 | //----------------------------------------------- ENABLE FLAG ---------------------------------------------- |
| 233 | void GameImpl::enableFlag(int flag) |
| 234 | { |
no outgoing calls