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

Function encode_command_as_key

crawl-ref/source/command.cc:1485–1496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1483}
1484
1485int encode_command_as_key(command_type cmd) noexcept
1486{
1487 // Don't accept buggy commands
1488 if (cmd < CMD_NO_CMD || cmd >= CMD_MAX_CMD)
1489 cmd = CMD_NO_CMD;
1490
1491 // There should be room between the internal keys
1492 // (CK_MIN_INTERNAL == -1021) and keys with alt set
1493 // (about -3000 + 255) for command_type to fit
1494 // (currently 2000 through 2287).
1495 return -(int)cmd;
1496}

Callers 4

handle_mouseMethod · 0.85
macro_buf_add_cmdFunction · 0.85
handle_mouseMethod · 0.85
handle_mouseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected