Back to Evolution Project page


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Header Files   Sources   Compound Members   File Members  

evolutionle/src/sprite.c File Reference


Functions

int get_unit_from_pixelx (int pixel)
int get_unit_from_pixely (int pixel)
void read_sprite_from_file (FILE* f, sprite* sp, gchar *sp_dir)
void print_sprite_info (sprite* sp)
void read_all_sprites (char* filename, gchar *sp_dir)
spriteget_sprite_from_id (GList *splist, int id)
sprite_unitsprite_unit_add (GList **unit_list, sprite *sp, int x, int y)
rect add_sprite_on_unit (sprite *sp, int x, int y)
int can_place_sprite_on_unit (sprite *sp, int x, int y)
rect delete_sprite_on_unit (unit *unitmap, int x, int y)
void delete_sprite_unit (sprite_unit *sp_unit)
int save_level_to_file (FILE *f)
int open_level_from_file (FILE *f)
void resize_array_of_units (void)
void update_list_of_units (void)
int file_exists (gchar *fn)
void read_config (void)
void init_variables (void)


Function Documentation

int get_unit_from_pixelx (int pixel)

Definition at line 10 of file evolutionle/src/sprite.c.

int get_unit_from_pixely (int pixel)

Definition at line 14 of file evolutionle/src/sprite.c.

void read_sprite_from_file (FILE * f, sprite * sp, gchar * sp_dir)

Definition at line 18 of file evolutionle/src/sprite.c.

void print_sprite_info (sprite * sp)

Definition at line 65 of file evolutionle/src/sprite.c.

void read_all_sprites (char * filename, gchar * sp_dir)

Definition at line 69 of file evolutionle/src/sprite.c.

sprite * get_sprite_from_id (GList * splist, int id)

Definition at line 101 of file evolutionle/src/sprite.c.

sprite_unit * sprite_unit_add (GList ** unit_list, sprite * sp, int x, int y)

Definition at line 118 of file evolutionle/src/sprite.c.

rect add_sprite_on_unit (sprite * sp, int x, int y)

Definition at line 130 of file evolutionle/src/sprite.c.

int can_place_sprite_on_unit (sprite * sp, int x, int y)

Definition at line 184 of file evolutionle/src/sprite.c.

rect delete_sprite_on_unit (unit * unitmap, int x, int y)

Definition at line 203 of file evolutionle/src/sprite.c.

void delete_sprite_unit (sprite_unit * sp_unit)

Definition at line 235 of file evolutionle/src/sprite.c.

int save_level_to_file (FILE * f)

Definition at line 253 of file evolutionle/src/sprite.c.

int open_level_from_file (FILE * f)

Definition at line 313 of file evolutionle/src/sprite.c.

void resize_array_of_units (void)

Definition at line 360 of file evolutionle/src/sprite.c.

void update_list_of_units (void)

Definition at line 418 of file evolutionle/src/sprite.c.

int file_exists (gchar * fn)

Definition at line 472 of file evolutionle/src/sprite.c.

void read_config (void)

Definition at line 482 of file evolutionle/src/sprite.c.

void init_variables (void)

Definition at line 519 of file evolutionle/src/sprite.c.


Generated at Mon Nov 6 22:47:01 2000 for TheGameofEvolution by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999