background
Class Road

java.lang.Object
  |
  +--background.Background
        |
        +--background.Road
Direct Known Subclasses:
HorizontalRoad, VerticalRoad

public class Road
extends Background


Field Summary
protected  boolean isVertical
           
 
Fields inherited from class background.Background
externalName, height, width, xCoor, yCoor
 
Constructor Summary
Road(double x, double y, double w, double h)
          Initialize variables for the vehicle
 
Method Summary
 void draw(java.awt.Graphics2D g)
          Use the graphics system to actually draw the shapes we have created.
 
Methods inherited from class background.Background
getHeight, getName, getWidth, getX, getY, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isVertical

protected boolean isVertical
Constructor Detail

Road

public Road(double x,
            double y,
            double w,
            double h)
Initialize variables for the vehicle

Parameters:
x - x-coordinate of Road in the world
y - y-coordinate of Road in the world
Method Detail

draw

public void draw(java.awt.Graphics2D g)
Use the graphics system to actually draw the shapes we have created.

Specified by:
draw in class Background
Parameters:
g - the graphics system to use