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

Function map_trap

src/display.c:295–305  ·  view source on GitHub ↗

* map_trap() * * Map the trap and print it out if directed. This routine assumes that the * hero can physically see the location. */

Source from the content-addressed store, hash-verified

293 * hero can physically see the location.
294 */
295void
296map_trap(struct trap *trap, int show)
297{
298 coordxy x = trap->tx, y = trap->ty;
299 int glyph = trap_to_glyph(trap);
300
301 if (svl.level.flags.hero_memory)
302 levl[x][y].glyph = glyph;
303 if (show)
304 show_glyph(x, y, glyph);
305}
306
307/*
308 * map_engraving()

Callers 7

sense_trapFunction · 0.85
show_map_spotFunction · 0.85
find_trapFunction · 0.85
premap_detectFunction · 0.85
wiz_mapFunction · 0.85
unmap_objectFunction · 0.85
feeltrapFunction · 0.85

Calls 1

show_glyphFunction · 0.85

Tested by

no test coverage detected