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

Function tileidx_command

crawl-ref/source/tilepick.cc:4044–4149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4042}
4043
4044tileidx_t tileidx_command(const command_type cmd)
4045{
4046 switch (cmd)
4047 {
4048 case CMD_REST:
4049 return TILEG_CMD_REST;
4050 case CMD_EXPLORE:
4051 return TILEG_CMD_EXPLORE;
4052 case CMD_INTERLEVEL_TRAVEL:
4053 return TILEG_CMD_INTERLEVEL_TRAVEL;
4054 case CMD_AUTOFIGHT:
4055 return TILEG_CMD_AUTOFIGHT;
4056 case CMD_WAIT:
4057 return TILEG_CMD_WAIT;
4058 case CMD_USE_ABILITY:
4059 return TILEG_CMD_USE_ABILITY;
4060 case CMD_SEARCH_STASHES:
4061 return TILEG_CMD_SEARCH_STASHES;
4062 case CMD_REPLAY_MESSAGES:
4063 return TILEG_CMD_REPLAY_MESSAGES;
4064 case CMD_RESISTS_SCREEN:
4065 return TILEG_CMD_RESISTS_SCREEN;
4066 case CMD_DISPLAY_OVERMAP:
4067 return TILEG_CMD_DISPLAY_OVERMAP;
4068 case CMD_DISPLAY_RELIGION:
4069 return TILEG_CMD_DISPLAY_RELIGION;
4070 case CMD_DISPLAY_MUTATIONS:
4071 return TILEG_CMD_DISPLAY_MUTATIONS;
4072 case CMD_MACRO_ADD: // this tile is a fairly generic + despite the name
4073 case CMD_MACRO_MENU:
4074 case CMD_DISPLAY_SKILLS:
4075 return TILEG_CMD_DISPLAY_SKILLS;
4076 case CMD_SHOW_CHARACTER_DUMP:
4077 case CMD_DISPLAY_CHARACTER_STATUS:
4078 return TILEG_CMD_DISPLAY_CHARACTER_STATUS;
4079 case CMD_DISPLAY_KNOWN_OBJECTS:
4080 return TILEG_CMD_KNOWN_ITEMS;
4081 case CMD_SAVE_GAME_NOW:
4082 case CMD_SAVE_GAME:
4083 return TILEG_CMD_SAVE_GAME_NOW;
4084#ifdef USE_TILE
4085 case CMD_EDIT_PLAYER_TILE:
4086 return TILEG_CMD_EDIT_PLAYER_TILE;
4087#endif
4088 case CMD_DISPLAY_COMMANDS:
4089 return TILEG_CMD_DISPLAY_COMMANDS;
4090 case CMD_LOOKUP_HELP:
4091 return TILEG_CMD_LOOKUP_HELP;
4092 case CMD_CHARACTER_DUMP:
4093 return TILEG_CMD_CHARACTER_DUMP;
4094 case CMD_DISPLAY_INVENTORY:
4095 return TILEG_CMD_DISPLAY_INVENTORY;
4096 case CMD_CAST_SPELL:
4097 return TILEG_CMD_CAST_SPELL;
4098 case CMD_MEMORISE_SPELL:
4099 return TILEG_CMD_MEMORISE_SPELL;
4100 case CMD_DROP:
4101 return TILEG_CMD_DROP;

Callers 4

CmdMenuEntryMethod · 0.85
fill_entriesMethod · 0.85
fill_entriesMethod · 0.85
updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected