]> ruin.nu Git - icfp05.git/blob - copsrc/cop.h
done, for now
[icfp05.git] / copsrc / cop.h
1 #ifndef __COP_H__
2 #define __COP_H__
3
4 #include <bot.h>
5 #include <utility>
6
7 class Cop : public Bot {
8         public:
9                 Cop(std::string name):Bot(name,cop_foot){};
10                 
11                 std::string turn();
12         protected:
13                 virtual void preGamePreparations();
14                 void sendInformation();
15                 void getInformation();
16                 void sendPlan();
17                 void getPlans();
18                 void vote();
19
20                 __gnu_cxx::hash_map<std::string, std::pair<std::string, PlayerType> > _copTargets;
21                 std::vector<std::string> _noRobber;
22                 __gnu_cxx::hash_map<std::string, int> _maybeRobber;
23                 __gnu_cxx::hash_map<std::string, int> _winningPlans;
24 };
25 #endif