|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectMonopoly.Cell
Monopoly.GoToJail
public class GoToJail
This class represents the cell of Monopoly which sent the player to the Jail.
When a player lands on this cell, he is sent to the Cell which represents the Jail
| Constructor Summary | |
|---|---|
GoToJail(java.lang.String name,
int location)
Constructs a new "Go to jail" cell. |
|
| Method Summary | |
|---|---|
void |
act(Monopoly game)
Forces the player to go to the "Jail" cell. |
| Methods inherited from class Monopoly.Cell |
|---|
getLocation, getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GoToJail(java.lang.String name,
int location)
| Method Detail |
|---|
public void act(Monopoly game)
act in interface Interactiveact in class Cellgame - the Monopoly instance that represents the game.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||