Handles the setting up updating, and cleaning up of the game display. More...
|Calculate the monster bar color separately, for ports. |
|void||cnv_stat (int val, char *out_val, size_t out_len)|
|Converts stat num into a six-char (right justified) string. |
|This is used when the user is idle to allow for simple animations. |
|Flip "inven" and "equip" in any sub-windows. |
|void||subwindows_set_flags (u32b *new_flags, size_t n_subwindows)|
|Called with an array of the new flags for all the subwindows, in order to set them to the new values, with a chance to perform housekeeping. |
|const char *||stat_names [STAT_MAX]|
|Abbreviations of healthy stats. |
|const char *||stat_names_reduced [STAT_MAX]|
|Abbreviations of damaged stats. |
|const char *||window_flag_desc |
|Certain "screens" always use the main screen, including News, Birth, Dungeon, Tomb-stone, High-scores, Macros, Colors, Visuals, Options. |
Handles the setting up updating, and cleaning up of the game display.
Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke Copyright (c) 2007 Antony Sidwell
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.
Calculate the monster bar color separately, for ports.
References monster::attr, COLOUR_BLUE, COLOUR_DARK, COLOUR_L_BLUE, COLOUR_L_GREEN, COLOUR_L_RED, COLOUR_ORANGE, COLOUR_RED, COLOUR_UMBER, COLOUR_VIOLET, COLOUR_WHITE, COLOUR_YELLOW, player_upkeep::health_who, monster::hp, monster::m_timed, monster::maxhp, monster::mflag, mflag_has, player::timed, and player::upkeep.
Referenced by prt_health().
Flip "inven" and "equip" in any sub-windows.
References angband_term, ANGBAND_TERM_MAX, flip_inven, i, OLIST_QUIVER, OLIST_WEIGHT, OLIST_WINDOW, PW_EQUIP, PW_INVEN, show_equip(), show_inven(), Term, Term_activate(), Term_fresh(), and window_flag.
|const char* window_flag_desc|
Certain "screens" always use the main screen, including News, Birth, Dungeon, Tomb-stone, High-scores, Macros, Colors, Visuals, Options.
Later, special flags may allow sub-windows to "steal" stuff from the main window, including File dump (help), File dump (artifacts, uniques), Character screen, Small scale map, Previous Messages, Store screen, etc.