Lane.java |
import objectdraw.*; import java.awt.*; public class Lane extends ActiveObject { // Distance from front bumper to back bumper of the longest vehicle, in pixels. private static final int MAX_VEHICLE_SIZE = 139; public Lane( ) { // Add code to construct the lane here. start(); } public void run() { // Add code here if necessary // Loop until the program stops. while ( true ) { } } }
Lane.java |