1   package simworldobjects;
2   
3   import java.awt.*;
4   
5   /**
6   * Models a simple wall object
7   *
8   * @author Graham Ritchie
9   */
10  public class SimRoad extends BasicSimObject
11  {
12      private Color color;
13      /**
14      * Sets up this wall
15      *
16      * @param x the wall's x coordinate
17      * @param y the wall's y coordinate
18      * @param z the wall's z coordinate
19      * @param b the wall's bearing 
20      * @param length the wall's length
21      * @param width the wall's width
22      */
23      public SimRoad(double x, double y, double z, double b, double length, double width)
24      {
25          // initialise the SimObject
26          super(0.0,length,width,"road",x,y,z,0.0,b);
27          this.color = Color.green;
28      }
29      
30      public Color getColor(){
31          return this.color;
32      }
33      public void setColor(Color color){
34          this.color = color;
35      }
36  }
37