Class Director

java.lang.Object
  |
  +--Director

public class Director
extends java.lang.Object

This class creates a graphics window, adds Props to the scene, and controls their actions.


Constructor Summary
Director()
          Create a new Director and all the required accessories.
 
Method Summary
 void action()
          Direct the action on stage.
 void createProps()
          Add all the stationary props to the stage.
 Road getRoad(int number)
          Return the Road with this number or null if there is none
static void main(java.lang.String[] arg)
          The main() method instantiates a new Director object, creates the Props, starts the action, and displays a notice when the Action is complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Director

public Director()
Create a new Director and all the required accessories.

Method Detail

createProps

public void createProps()
Add all the stationary props to the stage.


action

public void action()
Direct the action on stage.


getRoad

public Road getRoad(int number)
Return the Road with this number or null if there is none

Parameters:
number - the number of the Road object to retrieve
Returns:
the Road object corresponding to this Road number or null if no Road with that number exists

main

public static void main(java.lang.String[] arg)
The main() method instantiates a new Director object, creates the Props, starts the action, and displays a notice when the Action is complete.

Parameters:
arg - a String array, currently ignored