| 729 | return this->getRegionAt(position.x, position.y); |
| 730 | } |
| 731 | bool Game::hasPath(Position source, Position destination) const |
| 732 | { |
| 733 | if (source.isValid() && destination.isValid()) |
| 734 | { |
| 735 | Region rgnA = getRegionAt(source); |
| 736 | Region rgnB = getRegionAt(destination); |
| 737 | if (rgnA && rgnB && rgnA->getRegionGroupID() == rgnB->getRegionGroupID()) |
| 738 | return this->setLastError(); |
| 739 | } |
| 740 | return this->setLastError(Errors::Unreachable_Location); |
| 741 | } |
| 742 | //------------------------------------------ DRAW TEXT ---------------------------------------------- |
| 743 | void Game::drawText(CoordinateType::Enum ctype, int x, int y, const char *format, ...) |
| 744 | { |
no test coverage detected