- if (conInter.type == bank){
- cerr << "FOUND A BANK" << endl;
- list<string> l = shortestPath(_location, _type, FindCop(_players, 3));
- if (l.size() > 0){
- cerr << "Cop " << l.size() << " intersections away." << endl;
- goodness = 0;
- }else if (_banks[street->first] > 0){
- cerr << "No cop close to bank" << endl;
- return street->first;
- }
- }
- int curx = inter.x;
- int cury = inter.y;
-
- int newx = conInter.x;
- int newy = conInter.y;
- for (hash_map<string, Player>::const_iterator player = _players.begin();
- player != _players.end(); ++player){
- if (player->first == _name)
- continue;
+ list<string> closestFootCop = shortestPath(street->first, cop_foot, FindPlayer(_players, cop_foot, 6), true);
+ list<string> closestCarCop = shortestPath(street->first, cop_car, FindPlayer(_players, cop_car, 5), true);