/* * HorizontalRoad.java * * Created on July 9, 2003, 10:06 AM */ package background; /** * * @author dickey */ public class HorizontalRoad 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 HorizontalRoad(double x, double y, double w, double h) { super(x, y, w, h); super.externalName = "Horizontal-Road"; super.isVertical = false; //this is what makes it horizontal } }