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

Function mon_track_add

src/monmove.c:77–86  ·  view source on GitHub ↗

push coordinate x,y to mtrack, making monster remember where it was */

Source from the content-addressed store, hash-verified

75
76/* push coordinate x,y to mtrack, making monster remember where it was */
77void
78mon_track_add(struct monst *mtmp, coordxy x, coordxy y)
79{
80 int j;
81
82 for (j = MTSZ - 1; j > 0; j--)
83 mtmp->mtrack[j] = mtmp->mtrack[j - 1];
84 mtmp->mtrack[0].x = x;
85 mtmp->mtrack[0].y = y;
86}
87
88void
89mon_track_clear(struct monst *mtmp)

Callers 2

dog_moveFunction · 0.85
m_moveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected