MCPcopy Create free account
hub / github.com/crawl/crawl / mapspec_at

Method mapspec_at

crawl-ref/source/mapdef.cc:1709–1727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1707}
1708
1709keyed_mapspec *map_lines::mapspec_at(const coord_def &c)
1710{
1711 int key = (*this)(c);
1712
1713 if (key == SUBVAULT_GLYPH)
1714 {
1715 // Any subvault should create the overlay.
1716 ASSERT(overlay);
1717 if (!overlay)
1718 return nullptr;
1719
1720 key = (*overlay)(c.x, c.y).keyspec_idx;
1721 ASSERT(key);
1722 if (!key)
1723 return nullptr;
1724 }
1725
1726 return mapspec_for_key(key);
1727}
1728
1729const keyed_mapspec *map_lines::mapspec_at(const coord_def &c) const
1730{

Callers 6

merge_subvaultMethod · 0.80
validate_temple_mapMethod · 0.80
dgn_register_placeFunction · 0.80
map_feature_atFunction · 0.80
apply_gridMethod · 0.80
feature_atMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected