Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

src/draw.c File Reference


Detailed Description

Base code for drawing user interface.

Definition in file draw.c.

#include "crogue.h"

Go to the source code of this file.

Functions

const char * hunger_status (void)
void UI_Status_Place (int y, int t)
void full_redraw (void)
void draw (void)
void draw_all_tiles (void)
void draw_tile (ushort x, ushort y)

Variables

int clear_top
int statuslinepos


Function Documentation

void draw void   ) 
 

Definition at line 59 of file draw.c.

References catprintf(), clear_line, clear_top, deref_file_ptr(), player::extrinsic, Graph_ClearRect(), Graph_DrawStr(), player::hps, player::hps_max, hunger_status(), player::level, MAPDESC_CURRENT, world::messagevis, OPTION_FONTSIZE, world::options, player_gold(), world::plr, player::pps, player::pps_max, SCREEN_HEIGHT, SCREEN_WIDTH, STAT_FLAG_CONFUSED, STAT_FLAG_HALLUCINATING, STAT_FLAG_NUMB, STAT_FLAG_PARALYZED, STAT_FLAGS, statuslinepos, UI_MF_clear(), w, player::x, and player::y.

Referenced by die(), eventloop(), full_redraw(), hotkey_item(), prompt(), prompt_dir(), and prompt_letter().

void draw_all_tiles void   ) 
 

Definition at line 111 of file draw.c.

References draw_tile(), MAPSIZE_X, and MAPSIZE_Y.

Referenced by plr_move().

void draw_tile ushort  x,
ushort  y
 

Definition at line 122 of file draw.c.

References draw_item(), tiledesc::drawchar, player::extrinsic, tile::flags, LIGHTING_DARK, LIGHTING_LIT, LIGHTING_UNEXPLORED, MDESC, monstbytile(), player_can_see(), world::plr, RANGE, sint, STAT_FLAG_HALLUCINATING, STAT_FLAGS, world::t, TFLAG_EXPLORED, TFLAG_HIDETRAP, TFLAG_ITEM, TFLAG_LIT, TFLAG_OCCUPIED, world::tiledescs, tile::type, uchar, UI_TF_PutTile(), w, player::x, and player::y.

Referenced by calc_light_tile(), draw_all_tiles(), manip_door(), monst_remove(), monstmoveto(), place_monster(), plr_moveto(), plr_search(), plr_walk(), throw_item(), and UI_TF_FullRedraw().

void full_redraw void   ) 
 

Definition at line 50 of file draw.c.

References draw(), Graph_ClrScr(), world::messagevis, UI_TF_FullRedraw(), and w.

Referenced by actions_menu(), cast_spell(), char_info(), enter_map(), list_discoveries(), load_level(), options_menu(), pick_item(), pick_multiple(), plr_move(), study_book(), UI_Dialog_Default(), and UI_MF_history().

const char* hunger_status void   )  [static]
 

Definition at line 26 of file draw.c.

References world::plr, player::satiation, and w.

Referenced by draw().

void UI_Status_Place int  y,
int  t
 

Definition at line 42 of file draw.c.

References clear_top, and statuslinepos.

Referenced by init_layout().


Variable Documentation

int clear_top [static]
 

Definition at line 39 of file draw.c.

Referenced by draw(), and UI_Status_Place().

int statuslinepos [static]
 

Definition at line 40 of file draw.c.

Referenced by draw(), and UI_Status_Place().


Generated on Thu May 20 13:12:12 2004 for CalcRogue by doxygen 1.3.6