$self->{lap_diff} = undef;
$self->{total_time} = undef;
$self->{grey_diff} = undef;
+ $self->print_state;
}
sub finish_line {
$self->{best_lap} = undef;
$self->{gui}->show_semaphore(undef);
- $self->{race_running} = 0;
- $self->{qualification_running} = 0;
- $self->{start_in_progress} = 0;
-
- $self->{gui}->time(undef);
- $self->{gui}->best_lap(undef);
-
- for my $car (0..5) {
- $self->car($car)->reset;
- }
-}
-
-sub reset {
- my ($self) = @_;
-
$self->{race_running} = 0;
$self->{qualification_running} = 0;
$self->{start_in_progress} = 0;
$self->{race_finishing} = 0;
- $self->{best_lap} = undef;
- $self->{round} = 0;
- $self->print_rounds;
- $self->{gui}->best_lap(undef);
$self->{gui}->time(undef);
+ $self->{gui}->best_lap(undef);
for my $car (0..5) {
$self->car($car)->reset;