MCPcopy Create free account
hub / github.com/NetHack/NetHack / map_invisible

Function map_invisible

src/display.c:377–385  ·  view source on GitHub ↗

* map_invisible() * * Make the hero remember that a square contains an invisible monster. * This is a special case in that the square will continue to be displayed * this way even when the hero is close enough to see it. To get rid of * this and display the square's actual contents, use unmap_object() followed * by newsym() if necessary. */

Source from the content-addressed store, hash-verified

375 * by newsym() if necessary.
376 */
377void
378map_invisible(coordxy x, coordxy y)
379{
380 if (x != u.ux || y != u.uy) { /* don't display I at hero's location */
381 if (svl.level.flags.hero_memory)
382 levl[x][y].glyph = GLYPH_INVISIBLE;
383 show_glyph(x, y, GLYPH_INVISIBLE);
384 }
385}
386
387boolean
388unmap_invisible(coordxy x, coordxy y)

Callers 15

potionhitFunction · 0.85
furniture_detectFunction · 0.85
do_vicinity_mapFunction · 0.85
findoneFunction · 0.85
mfind0Function · 0.85
attack_checksFunction · 0.85
do_attackFunction · 0.85
shade_missFunction · 0.85
gulpumFunction · 0.85
stumble_onto_mimicFunction · 0.85
light_hits_gremlinFunction · 0.85
transient_light_cleanupFunction · 0.85

Calls 1

show_glyphFunction · 0.85

Tested by

no test coverage detected