MCPcopy Index your code
hub / github.com/NetHack/NetHack / glyph_at

Function glyph_at

src/display.c:2477–2483  ·  view source on GitHub ↗

* Utility routine for dowhatis() used to find out the glyph displayed at * the location. This isn't necessarily the same as the glyph in the levl * structure, so we must check the "third screen". */

Source from the content-addressed store, hash-verified

2475 * structure, so we must check the "third screen".
2476 */
2477int
2478glyph_at(coordxy x, coordxy y)
2479{
2480 if (x < 0 || y < 0 || x >= COLNO || y >= ROWNO)
2481 return cmap_to_glyph(S_room); /* XXX */
2482 return gg.gbuf[y][x].glyphinfo.glyph; /* _glyph_at(x,y) */
2483}
2484
2485#ifdef UNBUFFERED_GLYPHINFO
2486glyph_info *

Callers 15

do_mgivennameFunction · 0.85
namefloorobjFunction · 0.85
mongrantswishFunction · 0.85
trapped_chest_atFunction · 0.85
trapped_door_atFunction · 0.85
check_map_spotFunction · 0.85
object_detectFunction · 0.85
display_trap_mapFunction · 0.85
furniture_detectFunction · 0.85
show_map_spotFunction · 0.85
do_vicinity_mapFunction · 0.85
reveal_terrain_getglyphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected