diff options
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ + +#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 |