/* * VerticalRoad.java * * Created on July 9, 2003, 10:06 AM */ package background; /** * * @author dickey */ public class VerticalRoad extends Road { /** * Initialize variables for the vehicle * * @param x x-coordinate of Road in the world * @param y y-coordinate of Road in the world */ public VerticalRoad(double x, double y, double w, double h) { super(x, y, w, h); super.externalName = "Vertical-Road"; super.isVertical = true; //this is what makes it horizontal } }