From b4beac0adea1d024521937c036075c7803596665 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sat, 25 Jun 2005 13:38:55 +0000 Subject: [PATCH] added initial cop class --- cop/cop.cpp | 19 +++++++++++++++++++ cop/cop.h | 12 ++++++++++++ cop/cop.pro | 14 ++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 cop/cop.cpp create mode 100644 cop/cop.h create mode 100644 cop/cop.pro 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 -- 2.39.2