1 #include "cmd-visual/cmd-map.h"
2 #include "autopick/autopick-methods-table.h"
3 #include "autopick/autopick-util.h"
4 #include "io/input-key-acceptor.h"
5 #include "system/player-type-definition.h"
6 #include "term/screen-processor.h"
7 #include "view/display-map.h"
8 #include "window/main-window-util.h"
11 * Display a "small-scale" map of the dungeon for the player
13 * Currently, the "player" is displayed on the map.
15 void do_cmd_view_map(PlayerType *player_ptr)
18 prt(_("お待ち下さい...", "Please wait..."), 0, 0);
24 display_map(player_ptr, &cy, &cx);
25 if (autopick_list.empty() || player_ptr->wild_mode) {
26 put_str(_("何かキーを押すとゲームに戻ります", "Hit any key to continue"), 23, 30);
33 display_autopick = ITEM_DISPLAY;
36 term_get_size(&wid, &hgt);
37 int row_message = hgt - 1;
38 put_str(_("何かキーを押してください('M':拾う 'N':放置 'D':M+N 'K':壊すアイテムを表示)",
39 " Hit M, N(for ~), K(for !), or D(same as M+N) to display auto-picker items."),
45 flag = (DO_AUTOPICK | DO_QUERY_AUTOPICK);
46 } else if ('N' == i) {
48 } else if ('K' == i) {
49 flag = DO_AUTODESTROY;
50 } else if ('D' == i) {
51 flag = (DO_AUTOPICK | DO_QUERY_AUTOPICK | DONT_AUTOPICK);
57 if (~display_autopick & flag) {
58 display_autopick |= flag;
60 display_autopick &= ~flag;
63 display_map(player_ptr, &cy, &cx);