Reset num of arrived busses after setting new route

This commit is contained in:
HeshamTB 2020-11-20 20:15:13 +03:00
parent 012c8170f9
commit 4b0e8800be
Signed by: Hesham
GPG Key ID: 74876157D199B09E

View File

@ -49,6 +49,8 @@ public class Campaign {
for (Vehicle vehicle : vehicles) {
vehicle.setRoute(route);
}
//since a route is set, reset buses.
this.numberOfAriivedBuses = 0;
}
public District getHotelDistrict(){ return this.hotelDistrict; }