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 SimWall extends BasicSimObject
11  {
12      private Color outlineColor= Color.black;
13      private boolean isSelected = false;
14      /**
15      * Sets up this wall
16      *
17      * @param x the wall's x coordinate
18      * @param y the wall's y coordinate
19      * @param z the wall's z coordinate
20      * @param b the wall's bearing 
21      * @param length the wall's length
22      * @param width the wall's width
23      */
24      public SimWall(double x, double y, double z, double b, double length, double width)
25      {
26          // initialise the SimObject
27          super(0.0,length,width,"wall",x,y,z,0.0,b);
28      }
29       public Color getOutlineColor(){
30          return this.outlineColor;
31      }
32      public void setOutlineColor(Color color){
33          this.outlineColor = color;
34      }
35      public boolean getSelected(){
36          return isSelected;
37      }
38      public void setSelected(boolean a){
39          isSelected = a;
40      }
41  }
42