------------------------------------------------- GET REGION AT ------------------------------------------
| 873 | } |
| 874 | //------------------------------------------------- GET REGION AT ------------------------------------------ |
| 875 | BWAPI::Region GameImpl::getRegionAt(int x, int y) const |
| 876 | { |
| 877 | this->setLastError(); |
| 878 | if ( !Position(x, y) ) |
| 879 | { |
| 880 | this->setLastError(BWAPI::Errors::Invalid_Parameter); |
| 881 | return nullptr; |
| 882 | } |
| 883 | const BW::region * const rgn = BW::getRegionAt(x,y); |
| 884 | if ( !rgn ) |
| 885 | { |
| 886 | this->setLastError(BWAPI::Errors::Invalid_Parameter); |
| 887 | return nullptr; |
| 888 | } |
| 889 | return getRegion(rgn->getIndex()); |
| 890 | } |
| 891 | int GameImpl::getLastEventTime() const |
| 892 | { |
| 893 | return this->lastEventTime; |
nothing calls this directly
no test coverage detected