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

Function bot

src/botl.c:252–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void
253bot(void)
254{
255 if (gb.bot_disabled)
256 return;
257 /* dosave() flags completion by setting u.uhp to -1; suppress_map_output()
258 covers program_state.restoring and is used for status as well as map */
259 if (u.uhp != -1 && gy.youmonst.data
260 && iflags.status_updates && !suppress_map_output()) {
261 if (VIA_WINDOWPORT()) {
262 bot_via_windowport();
263 } else {
264 curs(WIN_STATUS, 1, 0);
265 putstr(WIN_STATUS, 0, do_statusline1());
266 curs(WIN_STATUS, 1, 1);
267 putmixed(WIN_STATUS, 0, do_statusline2());
268 }
269 }
270 disp.botl = disp.botlx = disp.time_botl = FALSE;
271}
272
273/* special purpose status update: move counter ('time' status) only */
274void

Callers 15

resize_ttyFunction · 0.85
docornerFunction · 0.85
reset_needed_visualsFunction · 0.85
doneFunction · 0.85
allmain.cFile · 0.85
newgameFunction · 0.85
in_containerFunction · 0.85
out_containerFunction · 0.85
newuhsFunction · 0.85
swallowedFunction · 0.85
flush_screenFunction · 0.85
chest_trapFunction · 0.85

Calls 3

suppress_map_outputFunction · 0.85
do_statusline1Function · 0.85
do_statusline2Function · 0.85

Tested by

no test coverage detected