virtual void vote();
virtual void voteResult();
void getPlayers();
+ template<class Goal, class Cost>
+ std::list<std::string> shortestPath(const std::string& from, PlayerType type, const Goal& goal, const Cost& cost, bool reverse = false);
template<class Goal>
std::list<std::string> shortestPath(const std::string& from, PlayerType type, const Goal& goal, bool reverse = false);
__gnu_cxx::hash_map<std::string, int> _winningPlans;
};
+
class SimpleSPGoal{
std::string _to;
int _limit;
#ifndef __COP_H__
#define __COP_H__
-#include <bot.h>
+#include "../botsrc/bot.h"
#include <utility>
class Cop : public Bot {
######################################################################
TEMPLATE = app
-INCLUDEPATH += ../botsrc
CONFIG -= qt
CONFIG += debug
unix:LIBS += -lm
TARGET = ../cop
-QMAKE_CFLAGS_RELEASE += -march=athlon-xp
# Input
-HEADERS += cop.h
+HEADERS += cop.h ../botsrc/bot.h ../botsrc/shortestPath.cpp
SOURCES += cop.cpp ../botsrc/bot.cpp
#ifndef __ROBBER_H__
#define __ROBBER_H__
-#include "bot.h"
+#include "../botsrc/bot.h"
class Robber : public Bot {
public:
######################################################################
TEMPLATE = app
-INCLUDEPATH += ../botsrc
CONFIG -= qt
#CONFIG += debug
unix:LIBS += -lm
TARGET = ../robber
-#QMAKE_CXXFLAGS_RELEASE += -march=athlon-xp -g
# Input
-HEADERS += robber.h ../botsrc/bot.h
+HEADERS += robber.h ../botsrc/bot.h ../botsrc/shortestPath.cpp
SOURCES += robber.cpp ../botsrc/bot.cpp