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

Function cmd_from_dir

src/cmd.c:3028–3032  ·  view source on GitHub ↗

returns the key bound to a movement command for given DIR_ and MV_ mode */

Source from the content-addressed store, hash-verified

3026
3027/* returns the key bound to a movement command for given DIR_ and MV_ mode */
3028char
3029cmd_from_dir(int dir, int mode)
3030{
3031 return cmd_from_func(move_funcs[dir][mode]);
3032}
3033
3034/* return the key bound to extended command */
3035char

Callers 2

use_pick_axeFunction · 0.85
randomkeyFunction · 0.85

Calls 1

cmd_from_funcFunction · 0.85

Tested by

no test coverage detected