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

sys/curses/sysutil.c File Reference

#include "crogue.h"
#include "export.h"

Go to the source code of this file.

Functions

int read_char (void)
void delay (void)
int min (int a, int b)
int max (int a, int b)
void * malloc_throw (size_t size)
void * calloc_throw (size_t N, size_t S)
void * realloc_throw (void *ptr, size_t size)
void Graph_ClrScr (void)
void Graph_DrawChar (short x, short y, char c)
void Graph_DrawStr (short x, short y, const char *str)
void Graph_ClearRect (int left, int top, int right, int bottom)
void UI_Dialog_Default (const char *content)
void UI_Dialog_Display (rect r, const char *content)
short FontHeight (void)
short FontWidth (unsigned char c)
void panic (const char *fmt,...)
const char * get_keyname (short key)


Function Documentation

void* calloc_throw size_t  N,
size_t  S
 

Definition at line 57 of file sysutil.c.

References panic().

void delay void   ) 
 

Definition at line 13 of file sysutil.c.

References DELAY_AMOUNT_PC.

short FontHeight void   ) 
 

Definition at line 124 of file sysutil.c.

Referenced by clear_string(), draw_string(), and UI_Menu_Redraw().

short FontWidth unsigned char  c  ) 
 

Definition at line 130 of file sysutil.c.

Referenced by draw_string(), and StringWidth().

const char* get_keyname short  key  ) 
 

Definition at line 156 of file sysutil.c.

Referenced by actions_menu_callback(), read_tutorial_sign(), and show_help_page().

void Graph_ClearRect int  left,
int  top,
int  right,
int  bottom
 

Definition at line 94 of file sysutil.c.

Referenced by _UI_TF_DrawTile(), clear_string(), draw(), and UI_MF_clear().

void Graph_ClrScr void   ) 
 

Definition at line 76 of file sysutil.c.

References clrscr.

Referenced by char_info(), display_scores(), full_redraw(), list_discoveries(), plr_move(), and UI_MF_history().

void Graph_DrawChar short  x,
short  y,
char  c
 

Definition at line 82 of file sysutil.c.

Referenced by _UI_TF_DrawTile(), and draw_string().

void Graph_DrawStr short  x,
short  y,
const char *  str
 

Definition at line 88 of file sysutil.c.

Referenced by draw(), and draw_string().

void* malloc_throw size_t  size  ) 
 

Definition at line 48 of file sysutil.c.

References panic().

Referenced by init_file_prefix().

int max int  a,
int  b
 

Definition at line 37 of file sysutil.c.

Referenced by follow_connection(), monst_takedamage(), plr_takedamage(), throw_item(), UI_TF_MoveCamera(), UI_TF_PlaceCamera(), and update_player().

int min int  a,
int  b
 

Definition at line 26 of file sysutil.c.

Referenced by delta_facing(), display_scores(), and place_room().

void panic const char *  fmt,
... 
 

Definition at line 137 of file sysutil.c.

References cleanup(), clrscr, sys_cleanup(), and vretprintf().

Referenced by calloc_throw(), malloc_throw(), realloc_throw(), sys_init(), and sys_init_data_file().

int read_char void   ) 
 

Definition at line 5 of file sysutil.c.

References feed_entropy(), and get_entropy.

Referenced by award_high_score(), char_info(), curses_title_screen(), die(), display_scores(), draw_string(), end_game(), hotkey_item(), list_discoveries(), plr_move(), prompt(), prompt_dir(), prompt_letter(), restore_game(), UI_Dialog_Display(), UI_Menu_Pick(), UI_MF_history(), and UI_MF_wait().

void* realloc_throw void *  ptr,
size_t  size
 

Definition at line 66 of file sysutil.c.

References panic().

void UI_Dialog_Default const char *  content  ) 
 

Definition at line 105 of file sysutil.c.

References default_dialog_rect, full_redraw(), UI_Dialog_Display(), and UI_MF_clear().

Referenced by read_tutorial_sign().

void UI_Dialog_Display rect  r,
const char *  content
 

Definition at line 113 of file sysutil.c.

References clrscr, draw_string(), rect::extent, read_char(), rect::topleft, coord::x, and coord::y.

Referenced by show_help_page(), and UI_Dialog_Default().


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