]> ruin.nu Git - icfp05.git/blobdiff - botsrc/bot.h
initial change to new version
[icfp05.git] / botsrc / bot.h
index 306ec7ef52fb9c64f6ab52bf62f09c0a0bdd8030..84f9de58f4d149d0859d898f7338da5fedd555c6 100644 (file)
@@ -81,26 +81,33 @@ class Bot {
        protected:
                void buildGraph();
                void updateWorld();
-               virtual std::string turn() = 0;
+               virtual std::string turn();
                virtual void preGamePreparations(){};
-               void move(std::string location);
+               virtual void move(std::string location);
+               virtual void sendInformation();
+               virtual void getInformation();
+               virtual void sendPlan();
+               virtual void getPlans();
+               virtual void vote();
+               virtual void voteResult();
                void getPlayers();
                std::list<std::string> shortestPath(const std::string& from, PlayerType type, const SPGoal& goal, bool reverse = false);
 
-       __gnu_cxx::hash_map<std::string, Intersection> _intersections;
-       __gnu_cxx::hash_map<std::string, Player> _players;
-       __gnu_cxx::hash_map<std::string, int> _banks;
-       std::map<int, std::string> _evidence;
-       std::map<PlayerType, std::string> _playerTypeNames;
-       std::map<std::string, PlayerType> _playerTypes;
-       std::string _name;
-       PlayerType _type;
-       std::string _location;
-       int _world;
-       int _robbed;
-       int _smell;
-       std::string _robberLocation;
-       std::string _copHq;
+               __gnu_cxx::hash_map<std::string, Intersection> _intersections;
+               __gnu_cxx::hash_map<std::string, Player> _players;
+               __gnu_cxx::hash_map<std::string, int> _banks;
+               std::map<int, std::string> _evidence;
+               std::map<PlayerType, std::string> _playerTypeNames;
+               std::map<std::string, PlayerType> _playerTypes;
+               std::string _name;
+               PlayerType _type;
+               std::string _location;
+               int _world;
+               int _robbed;
+               int _smell;
+               std::string _robberLocation;
+               std::string _copHq;
+               __gnu_cxx::hash_map<std::string, int> _winningPlans;
 };
 
 class SimpleSPGoal : public SPGoal{