From: Michael Andreen Date: Sat, 25 Jun 2005 13:38:55 +0000 (+0000) Subject: added initial cop class X-Git-Url: https://ruin.nu/git/?p=icfp05.git;a=commitdiff_plain;h=b4beac0adea1d024521937c036075c7803596665 added initial cop class --- diff --git a/cop/cop.cpp b/cop/cop.cpp new file mode 100644 index 0000000..3db7d41 --- /dev/null +++ b/cop/cop.cpp @@ -0,0 +1,19 @@ +#include "cop.h" +#include +#include +#include + +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 index 0000000..23533a6 --- /dev/null +++ b/cop/cop.h @@ -0,0 +1,12 @@ +#ifndef __COP_H__ +#define __COP_H__ + +#include + +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 index 0000000..28849d8 --- /dev/null +++ b/cop/cop.pro @@ -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