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

Function see_wsegs

src/worm.c:486–495  ·  view source on GitHub ↗

* see_wsegs() * * Refresh all of the segments of the given worm. This is only called * from see_monster() in display.c or when a monster goes minvis. It * is located here for modularity. */

Source from the content-addressed store, hash-verified

484 * is located here for modularity.
485 */
486void
487see_wsegs(struct monst *worm)
488{
489 struct wseg *curr = wtails[worm->wormno];
490
491 while (curr != wheads[worm->wormno]) {
492 newsym(curr->wx, curr->wy);
493 curr = curr->nseg;
494 }
495}
496
497/*
498 * detect_wsegs()

Callers 3

mon_set_minvisFunction · 0.85
see_monstersFunction · 0.85
monmove.cFile · 0.85

Calls 1

newsymFunction · 0.85

Tested by

no test coverage detected