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

editor/util.c File Reference

#include "editor.h"

Go to the source code of this file.

Defines

#define GrayIdle()   pokeIO(0x600005,0b10111)

Functions

int read_char (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)
void draw_string_font (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 debug_print (const char *fmt,...)
int is_in_bounds (int x, int y)
char * freadstr (char *s, int n, FILE *fp)
void fwritestr (const char *s, FILE *fp)


Define Documentation

 
#define GrayIdle  )     pokeIO(0x600005,0b10111)
 

Definition at line 3 of file util.c.


Function Documentation

void clear_line_range int  top,
int  bottom
 

Definition at line 48 of file util.c.

Referenced by draw_map_field(), and redraw_status_bar().

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

Definition at line 159 of file util.c.

Referenced by draw_level_number(), draw_rect(), and draw_textbox().

void clear_screen void   ) 
 

Definition at line 37 of file util.c.

void debug_print const char *  fmt,
... 
 

Definition at line 201 of file util.c.

References draw_string().

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

Definition at line 121 of file util.c.

Referenced by draw_current_map(), draw_map_field(), draw_rect(), and enter_properties_state().

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

Definition at line 174 of file util.c.

References clear_rect(), and draw_line().

Referenced by dialog_read_string(), draw_open_menu(), draw_resize_dialog(), draw_textbox(), enter_properties_state(), message(), pick_set(), and show_dialog().

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 63 of file util.c.

Referenced by _drawtile(), draw_editor_brush(), and draw_map_tile().

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 94 of file util.c.

Referenced by draw_map_tile(), and xor_tile().

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

Definition at line 133 of file util.c.

Referenced by debug_print(), dialog_read_string(), draw_level_number(), draw_menu_labels(), draw_open_menu(), draw_textbox(), enter_properties_state(), message(), pick_set(), redraw_status_bar(), show_dialog(), show_splash(), and show_title_screen().

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

Definition at line 146 of file util.c.

Referenced by draw_resize_dialog().

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

Definition at line 225 of file util.c.

Referenced by load_skye_level(), load_skye_level_r2(), and load_skye_lib_r2().

void fwritestr const char *  s,
FILE *  fp
 

Definition at line 239 of file util.c.

Referenced by save_skyelib_r2(), and write_skye_level_r2().

int is_in_bounds int  x,
int  y
 

Definition at line 213 of file util.c.

References FIELD_HEIGHT, and FIELD_WIDTH.

Referenced by can_shove(), detonate(), kye_move(), move_monster(), move_pusher(), move_slider(), and tile_is_wall().

int read_char void   ) 
 

Definition at line 5 of file util.c.

References GrayIdle.

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

Definition at line 186 of file util.c.

Referenced by draw_open_menu(), draw_textbox(), menu_toggle_highlight(), and pick_set().


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