statistics find_inner( std::string type, std::string terrain, int delay, bool smooth ) { statistics efficiency; for( int i = 0; i < 10; i++) { efficiency.add( test_efficiency( vproto_id( type ), ter_id( terrain ), delay, -1, smooth ) ); } return efficiency; }
efficiency_stat find_inner( const std::string &type, int &expected_mass, const std::string &terrain, const int delay, const bool smooth, const bool test_mass = false ) { efficiency_stat efficiency; for( int i = 0; i < 10; i++ ) { efficiency.add( test_efficiency( vproto_id( type ), expected_mass, ter_id( terrain ), delay, -1, smooth, test_mass ) ); } return efficiency; }