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

Method mode_name

crawl-ref/source/macro.cc:1151–1164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1149 }
1150
1151 string mode_name()
1152 {
1153 // XX less stupid implementation
1154 switch (keymc)
1155 {
1156 case KMC_NONE: return "macro";
1157 case KMC_DEFAULT: return "regular keymap";
1158 case KMC_MENU: return "menu keymap";
1159 case KMC_TARGETING: return "targeting keymap";
1160 case KMC_LEVELMAP: return "level map keymap";
1161 case KMC_CONFIRM: return "confirmation keymap";
1162 default: return "buggy keymap";
1163 }
1164 }
1165
1166 virtual formatted_string calc_title() override
1167 {

Callers 4

initialize_needs_keyMethod · 0.80
reset_key_promptMethod · 0.80
edit_action_rawMethod · 0.80
edit_actionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected