summaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'main.h')
-rw-r--r--main.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/main.h b/main.h
new file mode 100644
index 0000000..72682d3
--- /dev/null
+++ b/main.h
@@ -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