-void Cop::getPlans(){
- string input;
-
-
- //ignore From-plan
- do{
- getline(cin,input);
- }while(input != "from/");
-
-
-}
-
-void Cop::vote(){
- cout << "vote\\" << endl;
- cout << "vote: " << _name << endl;
- priority_queue<pair<int,string> > players;
- for (hash_map<string,int>::const_iterator player = _winningPlans.begin();
- player != _winningPlans.end(); ++player){
- players.push(pair<int,string>(-player->second, player->first));
- }
- while (players.size() > 0){
- const pair<int,string>& player = players.top();
- cout << "vote: " << player.second << endl;
- //cerr << "voted for " << player.second << " with " << player.first << " previously won plans" << endl;
- players.pop();
- }
- cout << "vote/" << endl;
+void Cop::move(std::string location){
+ cout << "cmov\\" << endl;
+ cout << "straight-arrow:" << endl;
+ cout << "mov\\" << endl;
+ Bot::move(location);
+ cout << "mov/" << endl;
+ cout << "acc\\" << endl;
+ cout << "acc/" << endl;
+ cout << "cmov/" << endl;