| 267 | |
| 268 | auto Sorcery::Engine::stop() -> void { |
| 269 | |
| 270 | _ctx.controller->unset_flag("in_engine"); |
| 271 | } |
| 272 | |
| 273 | auto Sorcery::Engine::_tile_explored(const Coordinate loc) const -> bool { |
| 274 | |
| 275 | const auto depth{_ctx.game->state->get_depth()}; |
| 276 | const auto it{_ctx.game->state->explored.find(depth)}; |
| 277 | |
| 278 | if (it == _ctx.game->state->explored.end()) |
| 279 | return false; |
| 280 | |
| 281 | return it->second.at(loc); |