Penalty class

Constructors

Penalty({required int penaltyType, required int infringementType, required int vehicleIdx, required int otherVehicleIdx, required int time, required int lapNum, required int placesGained})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
infringementType int
final
lapNum int
// Lap the penalty occurred on
final
otherVehicleIdx int
Vehicle index of the other car involved
final
penaltyType int
Penalty type
final
placesGained int
Number of places gained by this
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time int
Time gained, or time spent doing action in seconds
final
vehicleIdx int
Vehicle index of the car the penalty is applied to
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited