//prototypes des fonctions #include #include #include #include "image_struct.h" #include "window.h" struct display display_; SDL_Surface *AfficherBMP(char *file, SDL_Surface *screen, int x, int y); unsigned short CreateSprite(char *file, struct sprite *sprite_t, void *(*func)(void *arg), SDL_Surface *ptr_surface); unsigned short DestroySprite(struct sprite *sprite_t); //void InfoSprite(struct sprite *sprite_t); int ModifSprite (struct sprite *sprite_t, int x, int y, int num_active); int AfficherBMP_vie (char *file, SDL_Surface * screen, int x, int y, SDL_Rect *dest); SDL_Surface *AfficherBMP_menu (char *file, SDL_Surface * screen, int x, int y); void SetPixel(struct window *window_t, int x, int y, Uint32 pixel); void InitColors(struct window * window_t); void AddSpriteDisplay(struct sprite *sprite_t); void DelSpriteDisplay(struct sprite *sprite_t); void * RunSpriteDisplay_t(void * arg); void RunSpriteDisplay(struct window *window_t, struct level *lvl); void StopSpriteDisplay(void); void WaitSpriteDisplay(void); void ChangeAnim(struct sprite *sprite_t, int anim, int num_active); void CreateBullet(int type, int x, int y, float alpha, int direction, int distance, int dammage, int speed);