X-Git-Url: https://ruin.nu/git/?p=icfp05.git;a=blobdiff_plain;f=botsrc%2Fbot.h;fp=botsrc%2Fbot.h;h=84f9de58f4d149d0859d898f7338da5fedd555c6;hp=306ec7ef52fb9c64f6ab52bf62f09c0a0bdd8030;hb=f0bca5d0e69c0d1035c6b32b7d2c27e671f7060b;hpb=42e51f90d84089aa6ecf4b84939bd57b89fe125e diff --git a/botsrc/bot.h b/botsrc/bot.h index 306ec7e..84f9de5 100644 --- a/botsrc/bot.h +++ b/botsrc/bot.h @@ -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 shortestPath(const std::string& from, PlayerType type, const SPGoal& goal, bool reverse = false); - __gnu_cxx::hash_map _intersections; - __gnu_cxx::hash_map _players; - __gnu_cxx::hash_map _banks; - std::map _evidence; - std::map _playerTypeNames; - std::map _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 _intersections; + __gnu_cxx::hash_map _players; + __gnu_cxx::hash_map _banks; + std::map _evidence; + std::map _playerTypeNames; + std::map _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 _winningPlans; }; class SimpleSPGoal : public SPGoal{