Angband
Functions | Variables
ui-display.h File Reference

Handles the setting up updating, and cleaning up of the game display. More...

#include "angband.h"
#include "cmd-core.h"

Go to the source code of this file.

Functions

byte monster_health_attr (void)
 Calculate the monster bar color separately, for ports. More...
 
void cnv_stat (int val, char *out_val, size_t out_len)
 Converts stat num into a six-char (right justified) string. More...
 
void allow_animations (void)
 Set animations to allowed. More...
 
void disallow_animations (void)
 Set animations to disallowed. More...
 
void idle_update (void)
 This is used when the user is idle to allow for simple animations. More...
 
void toggle_inven_equip (void)
 Flip "inven" and "equip" in any sub-windows. More...
 
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. More...
 
void init_display (void)
 

Variables

const char * stat_names [STAT_MAX]
 Abbreviations of healthy stats. More...
 
const char * stat_names_reduced [STAT_MAX]
 Abbreviations of damaged stats. More...
 
const char * window_flag_desc [32]
 Certain "screens" always use the main screen, including News, Birth, Dungeon, Tomb-stone, High-scores, Macros, Colors, Visuals, Options. More...
 

Detailed Description

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.

Function Documentation

void allow_animations ( void  )

Set animations to allowed.

Referenced by target_set_interactive().

void cnv_stat ( int  val,
char *  out_val,
size_t  out_len 
)

Converts stat num into a six-char (right justified) string.

References strnfmt().

Referenced by display_player_stat_info(), and prt_stat().

void disallow_animations ( void  )

Set animations to disallowed.

Referenced by target_set_interactive().

void idle_update ( void  )

This is used when the user is idle to allow for simple animations.

Currently the only thing it really does is animate shimmering monsters.

References character_dungeon, do_animation(), GRAPHICS_NONE, msg_flag, OPT, redraw_stuff(), Term_fresh(), and use_graphics.

void init_display ( void  )
byte monster_health_attr ( void  )
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.

References angband_term, subwindow_set_flags(), and window_flag.

Referenced by do_cmd_options_win(), finish_parse_prefs(), and textui_init().

void toggle_inven_equip ( void  )

Variable Documentation

const char* stat_names[STAT_MAX]

Abbreviations of healthy stats.

Referenced by display_player_stat_info(), do_cmd_wiz_change_aux(), and prt_stat().

const char* stat_names_reduced[STAT_MAX]

Abbreviations of damaged stats.

Referenced by class_help(), display_player_stat_info(), prt_stat(), and race_help().

const char* window_flag_desc[32]

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.

Referenced by do_cmd_options_win(), option_dump(), and parse_prefs_window().