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

Function movobj

src/hack.c:824–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824void
825movobj(struct obj *obj, coordxy ox, coordxy oy)
826{
827 /* optimize by leaving on the fobj chain? */
828 remove_object(obj);
829 maybe_unhide_at(obj->ox, obj->oy);
830 newsym(obj->ox, obj->oy);
831 place_object(obj, ox, oy);
832 newsym(ox, oy);
833}
834
835staticfn void
836dosinkfall(void)

Callers 5

move_bcFunction · 0.85
drop_ballFunction · 0.85
dopushFunction · 0.85
moverock_coreFunction · 0.85
float_downFunction · 0.85

Calls 4

remove_objectFunction · 0.85
maybe_unhide_atFunction · 0.85
newsymFunction · 0.85
place_objectFunction · 0.85

Tested by

no test coverage detected