X-Git-Url: https://ruin.nu/git/?p=icfp05.git;a=blobdiff_plain;f=botsrc%2Fbot.h;h=62f25569fd2f3f57089fc8d58733675bfee1a605;hp=aad7473d6d24de7c004f10a19b7374b11ee6529d;hb=ea7c6c2755a89718e1396c1c3f8061886861ff4c;hpb=aae26492dc1712e3f4783223df158ff5aa65d975 diff --git a/botsrc/bot.h b/botsrc/bot.h index aad7473..62f2556 100644 --- a/botsrc/bot.h +++ b/botsrc/bot.h @@ -84,8 +84,10 @@ class Bot { virtual void vote(); virtual void voteResult(); void getPlayers(); + template + std::list shortestPath(const std::string& from, PlayerType type, const Goal& goal, const Cost& cost, bool reverse = false) const; template - std::list shortestPath(const std::string& from, PlayerType type, const Goal& goal, bool reverse = false); + std::list shortestPath(const std::string& from, PlayerType type, const Goal& goal, bool reverse = false) const; __gnu_cxx::hash_map _intersections; __gnu_cxx::hash_map _players; @@ -104,6 +106,7 @@ class Bot { __gnu_cxx::hash_map _winningPlans; }; + class SimpleSPGoal{ std::string _to; int _limit;