]> ruin.nu Git - icfp05.git/blobdiff - botsrc/bot.h
added possibility to change cost
[icfp05.git] / botsrc / bot.h
index aad7473d6d24de7c004f10a19b7374b11ee6529d..15be23460cefcf566370f030cc2e7ed1c20613fc 100644 (file)
@@ -84,6 +84,8 @@ class Bot {
                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);
 
@@ -104,6 +106,7 @@ class Bot {
                __gnu_cxx::hash_map<std::string, int> _winningPlans;
 };
 
+
 class SimpleSPGoal{
        std::string _to;
        int _limit;