Commit Graph

11 Commits

Author SHA1 Message Date
177e22ef13
Merge branch 'menu' 2020-12-02 02:03:29 +03:00
d4be36ebf8
Travelable interface
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-02 00:50:18 +03:00
19291fbfe1
District report:
- Add best time to dist

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-01 22:33:24 +03:00
0b4e259495
Route toString() Exception fix:
- toString() throws exception
   when invoked on 'noise' vehicles
   The routes made for them dont have
   District and Mashier set. Accessing
   name() from a null method throws
   null ptr ex.

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-01 00:23:07 +03:00
5fde1eee7e
Route override toString()
- Print length, names of streets
    Estimated time (Best case)
    and endpoints.
2020-11-27 06:04:29 +03:00
ee94355f42
Method in route getFastestTimeOfTravel(Vehicle):
- Every subclass of Vehicle needs to return
    the max of it self.

    - Calculate best case (empty streets) for
    a given vehcile using a Route.
2020-11-23 01:20:48 +03:00
Asaad Dadoush
5e612c2995 Edit 2020-11-17 17:45:21 +03:00
fe781f43b6
Better movement.
- Move Vehicles from list
   in Makkah.
2020-11-14 01:30:20 +03:00
392993a008
Cars move on top of each other 2020-11-13 22:35:52 +03:00
713e902e05 Route:
- Changed constructor to take
	Enums of District and Mashier
	as endpoint (start, end)

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-10 00:00:20 +03:00
e12c5ec296
Added classes:
- Bus class that extends Vehicle and implements Breakable
	- Street class and properties
	- Route still to be updated. Add Locations for start/end?
2020-10-21 03:15:03 +03:00