MCPcopy Create free account
hub / github.com/crawl/crawl / _prep_input

Function _prep_input

crawl-ref/source/main.cc:2510–2544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2508}
2509
2510static void _prep_input()
2511{
2512 you.turn_is_over = false;
2513 you.time_taken = player_speed();
2514 you.shield_blocks = 0; // no blocks this round
2515 you.reprisals.clear();
2516 you.triggers_done.init(0);
2517 you.attempted_attack = false;
2518
2519 you.redraw_status_lights = true;
2520 you.redraw_title = true;
2521 if (you.running == 0)
2522 {
2523 you.quiver_action.set_needs_redraw();
2524 you.refresh_rampage_hints();
2525 }
2526 print_stats();
2527 update_screen();
2528
2529 viewwindow();
2530 update_screen(); // ???
2531 if (check_for_interesting_features() && you.running.is_explore())
2532 stop_running();
2533
2534 if (you.seen_portals)
2535 {
2536 ASSERT(have_passive(passive_t::detect_portals));
2537 if (you.seen_portals == 1)
2538 mprf(MSGCH_GOD, "You have a vision of a gate.");
2539 else
2540 mprf(MSGCH_GOD, "You have a vision of multiple gates.");
2541
2542 you.seen_portals = 0;
2543 }
2544}
2545
2546static void _check_sanctuary()
2547{

Callers 2

_launch_gameFunction · 0.85
_inputFunction · 0.85

Calls 13

player_speedFunction · 0.85
print_statsFunction · 0.85
viewwindowFunction · 0.85
stop_runningFunction · 0.85
have_passiveFunction · 0.85
mprfFunction · 0.85
set_needs_redrawMethod · 0.80
refresh_rampage_hintsMethod · 0.80
is_exploreMethod · 0.80
update_screenFunction · 0.70
clearMethod · 0.45

Tested by

no test coverage detected