MCPcopy Create free account
hub / github.com/davemoore22/sorcery / _tile_explored

Method _tile_explored

src/engine/engine.cpp:269–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267
268auto Sorcery::Engine::stop() -> void {
269
270 _ctx.controller->unset_flag("in_engine");
271}
272
273auto 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);

Callers

nothing calls this directly

Calls 2

get_depthMethod · 0.80
atMethod · 0.45

Tested by

no test coverage detected