Main Page | Alphabetical List | Class List | File List | Class Members | File Members

engine/util.c File Reference

#include "engine.h"

Go to the source code of this file.

Functions

int read_char (void)
int read_char_with_timeout ()
int poll_char (void)
void flush_input (void)
void delay (void)
void clear_screen (void)
void clear_line_range (int top, int bottom)
void draw_sprite (const char *spr, int x, int y)
void draw_sprite_xor (const char *spr, int x, int y)
void draw_line (short x0, short y0, short x1, short y1, short Attr)
void draw_string (const char *str, short x, short y, short font)
void clear_rect (int left, int top, int width, int height)
void draw_rect (int left, int top, int width, int height)
void xor_rect (int left, int top, int width, int height)
void freadstr (char *s, int n, FILE *fp)
unsigned short fread_fast (void *ptr, short size, short n, FILE *f)
short fseek_fast (FILE *f, long offset, short wh)


Function Documentation

void clear_line_range int  top,
int  bottom
 

Definition at line 110 of file util.c.

void clear_rect int  left,
int  top,
int  width,
int  height
 

Definition at line 208 of file util.c.

void clear_screen void   ) 
 

Definition at line 99 of file util.c.

Referenced by draw_current_map(), pick_set(), and show_splash().

void delay void   ) 
 

Definition at line 80 of file util.c.

References GrayIdle.

void draw_line short  x0,
short  y0,
short  x1,
short  y1,
short  Attr
 

Definition at line 183 of file util.c.

void draw_rect int  left,
int  top,
int  width,
int  height
 

Definition at line 223 of file util.c.

References clear_rect(), and draw_line().

void draw_sprite const char *  spr,
int  x,
int  y
 

draw_sprite Draws a sprite *horizontally aligned on an 8-pixel boundary*. If the x position given is not aligned, it is rounded down to the nearest multiple of 8.

Definition at line 125 of file util.c.

void draw_sprite_xor const char *  spr,
int  x,
int  y
 

draw_sprite_xor XORs a sprite *horizontally aligned on an 8-pixel boundary*. If the x position given is not aligned, it is rounded down to the nearest multiple of 8.

Definition at line 156 of file util.c.

void draw_string const char *  str,
short  x,
short  y,
short  font
 

Definition at line 195 of file util.c.

void flush_input void   ) 
 

Definition at line 73 of file util.c.

unsigned short fread_fast void *  ptr,
short  size,
short  n,
FILE *  f
 

Definition at line 284 of file util.c.

Referenced by load_kyelib(), and load_skye_level().

void freadstr char *  s,
int  n,
FILE *  fp
 

Definition at line 267 of file util.c.

short fseek_fast FILE *  f,
long  offset,
short  wh
 

Definition at line 306 of file util.c.

Referenced by load_kyelib().

int poll_char void   ) 
 

Definition at line 63 of file util.c.

int read_char void   ) 
 

Definition at line 4 of file util.c.

References GrayIdle.

Referenced by _main(), dialog_read_string(), message(), pick_set(), show_dialog(), show_splash(), and show_title_screen().

int read_char_with_timeout  ) 
 

Definition at line 35 of file util.c.

References GrayIdle.

Referenced by game_loop().

void xor_rect int  left,
int  top,
int  width,
int  height
 

Definition at line 235 of file util.c.


Generated on Thu Apr 22 14:06:34 2004 for SKye by doxygen 1.3.6