|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectChoice
public class Choice
This simple class represents one option from a game book. Each Choice has a description and the number of the Page the user must go to if that choice is selected. It has two simple accessor methods and no mutator methods.
| Constructor Summary | |
|---|---|
Choice(int pageNumuber,
java.lang.String description)
This constructor takes the page number followed by the description |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Get the description of this choice |
int |
getDestinationNumber()
Get the page number of the Page the user must turn to |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Choice(int pageNumuber,
java.lang.String description)
pageNumuber - The number of the Page the user must go todescription - The text the user will see that desribes this Choice| Method Detail |
|---|
public java.lang.String getDescription()
public int getDestinationNumber()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||