2020-10-16 04:56:03 +02:00
|
|
|
import java.util.Date;
|
|
|
|
|
2020-10-09 21:58:00 +02:00
|
|
|
public interface Breakable {
|
|
|
|
|
2020-10-16 04:56:03 +02:00
|
|
|
int getTimeToFix();
|
|
|
|
boolean isBroken();
|
2020-11-06 19:55:01 +01:00
|
|
|
Accident collide(Breakable car, Date time, Street location);
|
2020-10-16 04:56:03 +02:00
|
|
|
void _break(Date time);
|
2020-10-21 04:42:45 +02:00
|
|
|
void fix();
|
2020-10-09 21:58:00 +02:00
|
|
|
|
|
|
|
}
|