#ifndef SDL_H #define SDL_H #include "../player.h" // for races/class totals #define EVENT_TICK 1 #define EVENT_NET 2 #define EVENT_NET_ACCEPT 3 #define EVENT_NET_RECV 4 #define EVENT_NET_LOST 5 #define EVENT_NET_ERROR 6 #define EVENT_NET_CLIENT_RECV 7 #define EVENT_NET_CLIENT_LOST 8 #define EVENT_NET_CLIENT_ERROR 9 SDL_Surface* screen; SDL_Surface* font_spritesheet; SDL_Surface* player_spritesheet; SDL_Surface* npc_spritesheet; SDL_Surface* shadow_spritesheet; SDL_Surface* wall_spritesheet; SDL_Surface* floor_spritesheet; SDL_Surface* door_spritesheet; SDL_Surface* camera_surface; SDL_Event event; Uint32 delay; // our delay in ms SDL_TimerID timer_id; // the timer id from SDL_AddTimer int video_width; int video_height; int video_mode; int video_fullscreen; // 0=windowed, 1=fullscreen void interfaceDrawString(const char *string, int start_x, int start_y); void interfaceDrawChar(char ch, int start_x, int start_y); void interfaceVideoSetSize(const char *input_string); SDL_Surface *interfaceScaleSurface(SDL_Surface *Surface, Uint16 Width, Uint16 Height); static int networkThread(void *nada); SDL_Thread *network_thread; Uint32 pushTickEvent(Uint32 interval, void *param); #endif