| 1687 | } |
| 1688 | |
| 1689 | Trap* Tile::getCoveringTrap() const |
| 1690 | { |
| 1691 | if(mCoveringBuilding == nullptr) |
| 1692 | return nullptr; |
| 1693 | |
| 1694 | if(mCoveringBuilding->getObjectType() != GameEntityType::trap) |
| 1695 | return nullptr; |
| 1696 | |
| 1697 | return static_cast<Trap*>(mCoveringBuilding); |
| 1698 | } |
| 1699 | |
| 1700 | bool Tile::checkCoveringTrapType(TrapType type) const |
| 1701 | { |
no test coverage detected