#ifndef __SHARED_H #define __SHARED_H #include #include "defs.h" /* functions */ int loadlevel(int wnum, int lnum); void setdefaults(sprite_t *s); int loadtiletypes(char *filename); sprite_t *addsprite(int id,int x, int y, char *name, int initial); tiletype_t *gettileat(int pixx,int pixy, int *tilex, int *tiley); int loadimagesets(void); int isbullet(int id); void flip(void); void killsprite(sprite_t *s); void drawsprite(sprite_t *s); int gettileframecount(int tid); int isfruit(int id); inline void drawpixel16(SDL_Surface *screen, int x, int y, SDL_Color c); inline void drawpixel32(SDL_Surface *screen, int x, int y, SDL_Color c); inline void drawbox16(SDL_Surface *screen, int x1,int y1,int x2,int y2,SDL_Color *c,SDL_Color *fc); void drawline16(SDL_Surface *screen, int x1, int y1, int x2, int y2, SDL_Color c); int getcolor(SDL_Surface *dest, int x, int y, SDL_Color *col); int chartomonster(char ch); char monstertochar(int id); tiletype_t *gettile(int tid); void drawtile(SDL_Surface *s, int x, int y); void initglobals(void); SDL_Surface *loadspriteimage(int spriteid, int frame, char *filename); #endif