- Buses now have fixed vehicle length
stored in STD_BUS_SIZE and are constructed
without parameters.
- Fixed generateBuses() in Campaign
to not be public and used one in practice
Signed-off-by: HeshamTB <hishaminv@gmail.com>
- Abstract class CivilVehicle that implements Breakable and
contains all common fields of vehicles. Now for example,
Sedan <- CivilVehicle <- Vehicle
^
Breakable
The breakable methods are mostly implemented in CivilVehicle
Except getTimeToFix() which is defined in subclasses of
CivilVehicle.
- Breakable interface:
The method collide() now returns instance of Accident instead of
void
Signed-off-by: HeshamTB <hishaminv@gmail.com>