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

Function _show_help_special

crawl-ref/source/command.cc:1441–1470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1439};
1440
1441static bool _show_help_special(int key)
1442{
1443 switch (key)
1444 {
1445 case ':':
1446 // If the game has begun, show notes.
1447 if (crawl_state.need_save)
1448 display_notes();
1449 return true;
1450 case '#':
1451 // If the game has begun, show dump.
1452 if (crawl_state.need_save)
1453 display_char_dump();
1454 return true;
1455 case '/':
1456 keyhelp_query_descriptions(CMD_DISPLAY_COMMANDS);
1457 return true;
1458 case 'q':
1459 _handle_FAQ();
1460 return true;
1461 case 'v':
1462 _print_version();
1463 return true;
1464 case '!':
1465 _display_diag();
1466 return true;
1467 default:
1468 return false;
1469 }
1470}
1471
1472void show_help(int section, string highlight_string)
1473{

Callers 1

show_helpFunction · 0.85

Calls 6

display_notesFunction · 0.85
display_char_dumpFunction · 0.85
_handle_FAQFunction · 0.85
_display_diagFunction · 0.85
_print_versionFunction · 0.70

Tested by

no test coverage detected