|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectMonopoly.Cell
Monopoly.Property
Monopoly.Company
public class Company
This class represents the company cells. The Company cells can be purchaced and a visitor pays a rent to the owner of them.
| Constructor Summary | |
|---|---|
Company(java.lang.String name,
int location,
int price)
Constructs a new company cell with a specific name, location and price |
|
| Method Summary | |
|---|---|
int |
getRent()
Returns the rent to be paid by a player who lands on this company (Accessor). |
| Methods inherited from class Monopoly.Property |
|---|
act, getOwner, getOwnerName, getPrice, ismortaged, mortage, setOwner, toString, unmortage |
| Methods inherited from class Monopoly.Cell |
|---|
getLocation, getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Company(java.lang.String name,
int location,
int price)
| Method Detail |
|---|
public int getRent()
getRent in class Property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||