public abstract class MonopolyUI
extends java.lang.Object
STUDENTS SHOULD NOT CHANGE THE CONTENTS OF THIS FILE IN ANY WAY.
Constructor and Description |
---|
MonopolyUI() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract Property |
askForProperty(Player player,
java.util.ArrayList<Property> list)
Displays a drop-down menu of properties for which the player may purchase
houses.
|
(package private) abstract boolean |
askQuestion(Player player,
java.lang.String str)
Displays a question prompt for a particular user with "yes" and "no"
options.
|
(package private) abstract boolean |
askQuestion(java.lang.String str)
Display a question prompt with "yes" and "no" options.
|
(package private) abstract void |
displayDice(int dieOne,
int dieTwo)
Display the current values of the dice
|
(package private) abstract void |
displayMessage(Player player,
java.lang.String str)
Displays a message that does not require a response for a particular user
|
(package private) abstract void |
displayMessage(java.lang.String str)
Displays a message that does not require a response.
|
(package private) abstract void |
end()
Close the GUI.
|
(package private) abstract void |
movePawn(int start,
int end)
Move a pawn around the board.
|
(package private) abstract void |
redrawProperty(Property property)
Refresh property information in the GUI.
|
(package private) abstract void |
refreshPlayers()
Refresh player information in the GUI.
|
(package private) abstract void |
setAutoPlay(boolean enable)
Enables automatic game play.
|
(package private) abstract void |
switchPlayers(int currPlayer,
int nextPlayer)
Update GUI to transfer game play from one player to another.
|
abstract void switchPlayers(int currPlayer, int nextPlayer)
currPlayer
- The current playernextPlayer
- The next playerabstract void refreshPlayers()
abstract void redrawProperty(Property property)
property
- The property to updateabstract void movePawn(int start, int end)
start
- Starting locationend
- Ending locationabstract void displayDice(int dieOne, int dieTwo)
dieOne
- The first diedieTwo
- The second dieabstract boolean askQuestion(java.lang.String str)
str
- The question to displayabstract boolean askQuestion(Player player, java.lang.String str)
player
- The player to display the prompt tostr
- The question to displayabstract void displayMessage(java.lang.String str)
str
- The message to displayabstract void displayMessage(Player player, java.lang.String str)
player
- The player to display the message tostr
- The message to displayabstract Property askForProperty(Player player, java.util.ArrayList<Property> list)
player
- The player to display the prompt tolist
- The list of properties for which the player may purchase housesabstract void end()
abstract void setAutoPlay(boolean enable)
enable
- If true, then enable automatic game play. Otherwise, disable.