1   package simworldobjects;
2   
3   import java.awt.*;
4   /**
5   * Models a simple ground object
6   *
7   * @author Simon Zienkiewicz
8   */
9   public class SimGround extends BasicSimObject
10  {
11          private Color color;
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 SimGround(double x, double y, double z, double b, double length, double width, Color c)
25      {
26          // initialise the SimObject
27          super(0.0,length,width,"ground",x,y,z,0.0,b);
28                  this.color = c;
29      }
30          
31          public Color getColor(){
32              return this.color;
33          }
34          public void setColor(Color color){
35              this.color = color;
36          }
37          public Color getOutlineColor(){
38              return this.outlineColor;
39          }
40          public void setOutlineColor(Color color){
41              this.outlineColor = color;
42          }
43          public boolean getSelected(){
44              return isSelected;
45          }
46        
47          public void setSelected(boolean a){
48              isSelected = a;
49          }
50  }
51