import java.awt.Color;

import objectdraw.DrawingCanvas;
import objectdraw.FilledOval;

// FallingSleet class

public class FallingSleet extends FallingObject {

  // size of a sleet pellet
  private static final int SLEET_SIZE = 10;

  // color for sleet
  private static final Color SLEET_COLOR = new Color(220, 220, 255);

  // initialize the instance variables and start the active object
  public FallingSleet(DrawingCanvas canvas, double x, 
                      double aSpeed, int aScreenHeight) {

    // first, call the constructor of the FallingObject class
    super(aScreenHeight, aSpeed);

    // create our sleet pellet
    object = new FilledOval(x, -SLEET_SIZE, SLEET_SIZE, SLEET_SIZE, canvas);
    object.setColor(SLEET_COLOR);

    this.start();
  }

}
