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();
|
|
|
|
boolean isInAccident();
|
2020-10-21 10:35:19 +02:00
|
|
|
Accident collide(Breakable car, Date time);
|
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
|
|
|
|
|
|
|
}
|