Angband
|
Deal with UI only command processing. More...
Go to the source code of this file.
Functions | |
void | do_cmd_redraw (void) |
Redraw the screen. | |
void | do_cmd_xxx_options (void) |
Display the options and redraw afterward. | |
void | do_cmd_unknown (void) |
Invoked when the command isn't recognised. | |
void | textui_cmd_suicide (void) |
Verify the suicide command. | |
void | textui_cmd_debug (void) |
Verify use of "debug" mode. | |
void | do_cmd_load_screen (void) |
Hack – load a screen dump from a file. | |
void | html_screenshot (const char *path, int mode) |
Take an html screenshot. | |
void | do_cmd_save_screen (void) |
Hack – save a screen dump to a file. | |
void | textui_cmd_rest (void) |
Get input for the rest command. | |
void | textui_quit (void) |
Quit the game. |
Deal with UI only command processing.
Copyright (c) 1997-2014 Angband developers
This work is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation, version 2, or
b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.
Hack – load a screen dump from a file.
ToDo: Add support for loading/saving screen-dumps with graphics and pseudo-graphics. Allow the player to specify the filename of the dump.
References ANGBAND_DIR_USER, BASIC_COLORS, buf, COLOUR_WHITE, EVENT_MESSAGE_FLUSH, event_signal(), FALSE, file_close(), file_getl(), file_open(), fp, FTYPE_TEXT, hack, i, MODE_READ, msg, path_build(), screen_load(), screen_save(), Term_clear(), Term_draw(), Term_what(), text_mbstowcs(), TRUE, and void().
Redraw the screen.
This command performs various low level updates, clears all the "extra" windows, does a total redraw of the main window, and requests all of the interesting updates and redraws that I can think of.
This command is also used to "instantiate" the results of the user selecting various things, such as graphics mode, so it must call the "TERM_XTRA_REACT" hook before redrawing the windows.
References angband_term, ANGBAND_TERM_MAX, character_dungeon, EVENT_INPUT_FLUSH, event_signal(), handle_stuff(), move_cursor_relative(), player_upkeep::notice, PN_COMBINE, PR_BASIC, PR_EQUIP, PR_EXTRA, PR_INVEN, PR_ITEMLIST, PR_MAP, PR_MESSAGE, PR_MONLIST, PR_MONSTER, PR_OBJECT, PU_BONUS, PU_FORGET_VIEW, PU_HP, PU_INVEN, PU_MANA, PU_MONSTERS, PU_SPELLS, PU_TORCH, PU_UPDATE_VIEW, player::px, player::py, player_upkeep::redraw, Term, Term_activate(), Term_clear(), Term_flush(), Term_fresh(), Term_redraw(), Term_xtra(), TERM_XTRA_REACT, player_upkeep::update, player::upkeep, and verify_panel().
Referenced by do_cmd_save_screen_html(), do_cmd_wiz_change(), do_cmd_wiz_cure_all(), do_cmd_xxx_options(), textui_cmd_toggle_ignore(), and textui_process_command().
Hack – save a screen dump to a file.
References do_cmd_save_screen_html(), do_cmd_save_screen_text(), and get_char().
Referenced by store_process_command_key().
Invoked when the command isn't recognised.
References prt().
Referenced by textui_process_command().
Display the options and redraw afterward.
References do_cmd_options(), and do_cmd_redraw().
Take an html screenshot.
References angband_color_table, BG_BLACK, BG_DARK, BG_MAX, BG_SAME, buildid, COLOUR_DARK, COLOUR_SHADE, COLOUR_WHITE, file_close(), file_open(), file_putf(), fp, FTYPE_TEXT, MAX_COLORS, MODE_WRITE, plog_fmt(), Term_get_size(), Term_what(), void(), and write_html_escape_char().
Referenced by do_cmd_save_screen_html().
Verify use of "debug" mode.
References EVENT_MESSAGE_FLUSH, event_signal(), get_check(), get_debug_command(), msg, player::noscore, and NOSCORE_DEBUG.
Get input for the rest command.
References CMD_REST, cmd_set_arg_choice(), cmdq_peek(), cmdq_push(), get_string(), p, REST_ALL_POINTS, REST_COMPLETE, and REST_SOME_POINTS.
Verify the suicide command.
References CMD_SUICIDE, cmdq_push(), keypress::code, EVENT_INPUT_FLUSH, event_signal(), get_check(), inkey(), prt(), textui_quit(), and player::total_winner.
Quit the game.
References FALSE, player_upkeep::playing, and player::upkeep.
Referenced by textui_cmd_suicide().