#ifndef MAIN_H #define MAIN_H extern int loop; void drawgrid(int x, int y,int w,int h, bool player, SDL_Texture * t); void drawfield(bool player); void checkshipbutts(); void checkfieldbutts(bool player); void checkrotbutts(); void drawship (int x,int y, char data); int getlen(int ship); void eraseship(int rship); void checkships(bool player); bool placeship(int rx, int ry, int rship, int rdir, bool player); void AI(); int randr(int min, int max); int getscore(int x, int y); std::string readfile(char const * filename); void writefile(char const * filename, char data[10][10]); #endif