Class Property

java.lang.Object
  extended by Space
      extended by Property

public class Property
extends Space


Field Summary
protected  int groupType
           
protected  int houses
           
protected  int myCost
           
protected  int[] myRent
           
 
Fields inherited from class Space
mortgaged, myColor, myName, myOwner, mySpace, myType
 
Constructor Summary
Property()
           
Property(java.lang.String name, java.awt.Color color, int cost, int[] rent, int gType)
           
 
Method Summary
 void changeHouses(int x)
           
 boolean equals(java.lang.Object o)
           
 int getCost()
           
 int getGroup()
           
 int getHouses()
           
 int getRent()
           
 void setHouses(int h)
           
 
Methods inherited from class Space
getColor, getMortgaged, getName, getOwner, getType, setMortgaged, setOwner
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myCost

protected int myCost

myRent

protected int[] myRent

houses

protected int houses

groupType

protected int groupType
Constructor Detail

Property

public Property()

Property

public Property(java.lang.String name,
                java.awt.Color color,
                int cost,
                int[] rent,
                int gType)
Method Detail

getGroup

public int getGroup()

getCost

public int getCost()

getHouses

public int getHouses()

setHouses

public void setHouses(int h)

changeHouses

public void changeHouses(int x)

getRent

public int getRent()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Space