X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=copsrc%2Fcop.h;h=6f8af753ae1e19dcb6c502b3832b5b01780e88cd;hb=311cc01a3137b22c5617305245588cef6ef48ba9;hp=0cc2a64e42827a90942827fb8a0399088af5565a;hpb=6b0d8904651d810411bef9b8ad213125fa437bd0;p=icfp05.git diff --git a/copsrc/cop.h b/copsrc/cop.h index 0cc2a64..6f8af75 100644 --- a/copsrc/cop.h +++ b/copsrc/cop.h @@ -8,18 +8,16 @@ class Cop : public Bot { public: Cop(std::string name):Bot(name,cop_foot){}; - std::string turn(); protected: virtual void preGamePreparations(); void sendInformation(); void getInformation(); void sendPlan(); - void getPlans(); - void vote(); + void move(std::string location); + int maybeAtNeighbor(const Intersection& intersection); __gnu_cxx::hash_map > _copTargets; - std::vector _noRobber; - __gnu_cxx::hash_map _maybeRobber; - __gnu_cxx::hash_map _winningPlans; + std::list<__gnu_cxx::hash_map > _maybeRobber; + std::string _robber; }; #endif