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

Function t_at

src/trap.c:6501–6512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6499}
6500
6501struct trap *
6502t_at(coordxy x, coordxy y)
6503{
6504 struct trap *trap = gf.ftrap;
6505
6506 while (trap) {
6507 if (trap->tx == x && trap->ty == y)
6508 return trap;
6509 trap = trap->ntrap;
6510 }
6511 return (struct trap *) 0;
6512}
6513
6514/* return number of traps of type ttyp on this level */
6515int

Callers 15

mkswampFunction · 0.85
dositFunction · 0.85
show_map_spotFunction · 0.85
findoneFunction · 0.85
openoneFunction · 0.85
dosearch0Function · 0.85
reveal_terrain_getglyphFunction · 0.85
mount_steedFunction · 0.85
landing_spotFunction · 0.85
teleokFunction · 0.85
safe_teledsFunction · 0.85
doteleFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_moveFunction · 0.68