rendered paste body
public class Car {
private double position;
private double speed;
private double acceleration;
private Image image;
private int carNumber;
private static int carNumberCounter;
public static void resetCarNumberCounter(){
}
public Car (int position, int speed, int acceleration, Image image){
this.position = (int) position;
this.speed = (int) speed;
this.acceleration = (int) acceleration;
this.image = image;
}
public int getCarNumber(){
}
public void update (double delta_t){
position = position + speed * delta_t + 0.5 * acceleration * delta_t * delta_t;
speed = speed + acceleration * delta_t;
}
public void draw (Graphics g){
drawImage(Image, int, int, Observer);
drawImage(img,(int)position, 20, null);
}
public boolean isWinner(){
}
}