|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectMonopoly.Cell
Monopoly.Property
Monopoly.TrainStation
public class TrainStation
This class represents the TrainStation cells. The TrainStation cells can be purchaced and a visitor pays a rent to the owner of them.
| Constructor Summary | |
|---|---|
TrainStation(java.lang.String name,
int location,
int price,
int rent)
Constructs a new TrainStation cell with a specific name, location, price and rent |
|
| Method Summary | |
|---|---|
int |
getRent()
Returns the rent to be paid by a player who lands on this train station (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 TrainStation(java.lang.String name,
int location,
int price,
int rent)
| 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 | ||||||||