- if (player->second.type == cop_foot && dist2 <= 3)
- goodness /= 100;
- else if (player->second.type == cop_car && dist2 <= 2)
- goodness /= 100;
+ priority_queue<double> banks;
+ for(hash_map<string,int>::const_iterator bank = _banks.begin();
+ bank != _banks.end(); ++bank){
+ //cerr << "Handling bank at: " << bank->first << endl;
+ if (bank->second > 0){
+ list<string> l = shortestPath(street->first, _type, SimpleSPGoal(bank->first));
+ if (l.size() < 1)
+ continue;
+ //list<string>::iterator i = l.begin();
+ //++i;
+ banks.push(bank->second/(pow(l.size(),4.0)));
+ }
+ }
+ //sort(banks.begin(),banks.end(),greater<double>());