]> ruin.nu Git - icfp05.git/commitdiff
added initial cop class
authorMichael Andreen <harv@ruin.nu>
Sat, 25 Jun 2005 13:38:55 +0000 (13:38 +0000)
committerMichael Andreen <harv@ruin.nu>
Sat, 25 Jun 2005 13:38:55 +0000 (13:38 +0000)
cop/cop.cpp [new file with mode: 0644]
cop/cop.h [new file with mode: 0644]
cop/cop.pro [new file with mode: 0644]

diff --git a/cop/cop.cpp b/cop/cop.cpp
new file mode 100644 (file)
index 0000000..3db7d41
--- /dev/null
@@ -0,0 +1,19 @@
+#include "cop.h"
+#include <iostream>
+#include <iterator>
+#include <cmath>
+
+using namespace std;
+using namespace __gnu_cxx;
+
+string Cop::turn(){
+       
+       return _location;
+}
+
+int main(){
+       Cop cop("cop");
+       cop.play();
+
+       return 0;
+}
diff --git a/cop/cop.h b/cop/cop.h
new file mode 100644 (file)
index 0000000..23533a6
--- /dev/null
+++ b/cop/cop.h
@@ -0,0 +1,12 @@
+#ifndef __COP_H__
+#define __COP_H__
+
+#include <bot.h>
+
+class Cop : public Bot {
+       public:
+               Cop(std::string name):Bot(name,cop_foot){};
+               
+               std::string turn();
+};
+#endif
diff --git a/cop/cop.pro b/cop/cop.pro
new file mode 100644 (file)
index 0000000..28849d8
--- /dev/null
@@ -0,0 +1,14 @@
+######################################################################
+# Automatically generated by qmake (1.07a) Fri Jun 24 23:15:16 2005
+######################################################################
+
+TEMPLATE = app
+INCLUDEPATH += ../bot
+CONFIG -= qt
+CONFIG += debug
+unix:LIBS += -lm
+
+
+# Input
+HEADERS += cop.h
+SOURCES += cop.cpp ../bot/bot.cpp