Class Property
java.lang.Object
Space
Property
public class Property
- extends Space
Constructor Summary |
Property()
|
Property(java.lang.String name,
java.awt.Color color,
int cost,
int[] rent,
int gType)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myCost
protected int myCost
myRent
protected int[] myRent
houses
protected int houses
groupType
protected int groupType
Property
public Property()
Property
public Property(java.lang.String name,
java.awt.Color color,
int cost,
int[] rent,
int gType)
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