From 96a1254ce35beb8cb0f3fd410d2a71f8dde18a8a Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Tue, 10 Nov 2020 00:43:16 +0300 Subject: [PATCH] Makkah: add all busses from camps to list Signed-off-by: HeshamTB --- src/MakkahCity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/MakkahCity.java b/src/MakkahCity.java index 5c461f8..3320bf1 100644 --- a/src/MakkahCity.java +++ b/src/MakkahCity.java @@ -14,6 +14,7 @@ public class MakkahCity { generateCamps(District.ALAZIZIYA, getRandom(100, 150)); generateCamps(District.ALMANSOOR, getRandom(90, 120)); generateCamps(District.ALHIJRA, getRandom(80, 110)); + fillBusesToList(); //Make Streets makeStreets(); //Make Routes @@ -57,6 +58,8 @@ public class MakkahCity { } private static void fillBusesToList() { - //TODO: add all buses from campaigns to vehiclesList + for (Campaign camp : allCampgains) { + vehiclesList.addAll(camp.getVehicles()); + } } }