This commit is contained in:
EngOsamah 2020-11-10 16:45:35 +03:00
parent 0fb689a3a0
commit 2b037e40e8
2 changed files with 25 additions and 12 deletions

View File

@ -11,11 +11,13 @@ public class MakkahCity {
public static void main(String[] args) {
//Gen Camp
generateCamps(District.ALAZIZIYA, getRandom(100, 150));
generateCamps(District.ALMANSOOR, getRandom(90, 120));
generateCamps(District.ALAZIZIYA, getRandom(70, 100));
generateCamps(District.ALMANSOOR, getRandom(110, 160));
generateCamps(District.ALHIJRA, getRandom(80, 110));
//Make Streets
makeStreets();
//Make Routes
makeRoutes();
@ -41,19 +43,20 @@ public class MakkahCity {
}
private static void makeStreets(){
//TODO: find values
stdStreet[StreetNames.KA_STREET] = new Street(500,3);
stdStreet[StreetNames.FOURTH_HISHWAY] = new Street(500,4);
stdStreet[StreetNames.THIRD_HIGHWAY] = new Street(500,3);
stdStreet[StreetNames.STREET1] = new Street(500,2);
stdStreet[StreetNames.STREET2] = new Street(500,2);
stdStreet[StreetNames.STREET3] = new Street(500,2);
stdStreet[StreetNames.STREET4] = new Street(500,2);
stdStreet[StreetNames.STREET5] = new Street(500,2);
stdStreet[StreetNames.KA_STREET] = new Street(22700,3);
stdStreet[StreetNames.FOURTH_HISHWAY] = new Street(24600,4);
stdStreet[StreetNames.THIRD_HIGHWAY] = new Street(22000,3);
stdStreet[StreetNames.STREET1] = new Street(4000,2);
stdStreet[StreetNames.STREET2] = new Street(7000,2);
stdStreet[StreetNames.STREET3] = new Street(400,2);
stdStreet[StreetNames.STREET4] = new Street(8200,2);
stdStreet[StreetNames.STREET5] = new Street(100,2); //TODO: Change numbers
}
private static void makeRoutes() {
//TODO: find using maps.
// stdRoutes [RouteName.mashierToAlMansoor1] = new Route({stdStreet[]}, hotelArea, mashier)
}
private static void fillBusesToList() {

10
src/RouteName.java Normal file
View File

@ -0,0 +1,10 @@
public class RouteName {
public static final int mashierToAlMansoor1 = 0;
public static final int mashierToAlMansoor2 = 1;
public static final int mashierToAlMansoor3 = 2;
public static final int mashierToAlHijra1 = 3;
public static final int mashierToAlHijra2 = 4;
public static final int mashierToAlAzizi1 = 5;
}