Archived
0

move transit to place

This commit is contained in:
iMoHax
2015-06-19 15:54:08 +03:00
parent fab31482cb
commit eac0627076
2 changed files with 5 additions and 1 deletions

View File

@@ -70,4 +70,8 @@ public interface Place extends Connectable<Place> {
vendor.clear();
}
}
default Vendor asTransit(){
return new TransitVendor(this);
}
}

View File

@@ -31,7 +31,7 @@ public class VendorsIterator implements Iterator<Vendor> {
nextVendor();
} else {
if (includeTransit)
next = new TransitVendor(place);
next = place.asTransit();
else
nextPlace();
}