Back to Evolution Project page


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

auxiliar.h

00001 #ifndef AUXILIAR
00002 #define AUXILIAR
00003 
00004 #include <gtk/gtk.h>
00005 #include "support.h"
00006 #include "interface.h"
00007 #include "sprite.h"
00008 
00009 
00010 #define DEFAULT_MAP_WIDTH 100
00011 #define DEFAULT_MAP_HEIGHT 100
00012 
00013 #define GRID_LINE_WIDTH 1
00014 
00015 #define FILE_OPERATION_NONE 0
00016 #define FILE_OPERATION_OPEN 1
00017 #define FILE_OPERATION_SAVE 2
00018 
00019 GtkWidget *frmNew;
00020 GtkWidget *Main;
00021 GtkWidget *frmSplash;
00022 
00023 void create_my_frmNew(void);
00024 
00025 int level_changed; //was the current level been edited changed?
00026 GtkWidget *dlg_areyousure;
00027 
00028 
00029 GdkPixmap *back_pixmap; //Memory pixmap
00030 sprite *sp_sel; //sprite selected
00031 int view_grid;
00032 int view_sprites;
00033 
00034 GdkGC *GcXOR;
00035 GdkGC *defgc;
00036 int old_x, old_y;
00037 int current_x, current_y;
00038 
00039 int grid_left, grid_top; //Where, in the array of units, is the part that will be showed?
00040 int clicked;
00041 
00042 gchar current_filename[1000];
00043 int current_fileoperation;
00044 gchar op_filename[1000];
00045 
00046 void create_new_level(void);
00047 void draw_grid(void);
00048 void clear_pixmap(GdkPixmap *pixmap, GdkGC *gc);
00049 void hide_old(GdkDrawable *drawable);
00050 void show_current(GdkDrawable *drawable);
00051 void toggle_view_grid(void);
00052 void resize_map(void);
00053 void new_map(int sizex, int sizey);
00054 void refresh_all(void);
00055 void refresh_local(int x, int y, int x2, int y2);
00056 void draw_grid_local(int x, int y, int x2, int y2);
00057 void draw_units_local(int x, int y, int x2, int y2);
00058 void draw_units_all(void);
00059 void event_on_unit(sprite *sp, int x, int y);
00060 void toggle_view_sprites(void);
00061 void exit_program(void);
00062 void show_on_statusbar(gchar *text);
00063 void set_pixmaps_from_filenames(GList *sp_lst);
00064 void delete_sprite_on_unit_le(unit *unitmap, int x, int y);
00065 void add_sprite_on_unit_le(sprite *sp, int x, int y);
00066 int open_level(gchar *fn);
00067 int save_level(gchar *fn);
00068 
00069 #endif //AUXILIAR

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