//--------------------------------------------------------------------------- #include "cgi-draw.h" #ifndef cnstlH #define cnstlH //#include "global.h" //--------------------------------------------------------------------------- #define MAX_LINES 30 #define CONSTELLATIONS_NUM 50 typedef struct CONST_LINE { char from[15]; char to[15]; }const_line; class constellation { private: public: const_line *lines[MAX_LINES]; int add_line(char *from, char *to); int draw(BITMAP image,star_point *star_point,unsigned char *style); int init(); int free_lines(); cat_entry *find_star(char *starname); star_point find_closest_star(long x,long y,star_point *star_points); }; class constellations { private: public: constellation *consts[CONSTELLATIONS_NUM]; int draw(BITMAP image,star_point *star_points); int init(); int free_consts(); }; #ifdef wolf constellations all_constellations; #endif #endif