|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectGUI.GUIOptionPane
public class GUIOptionPane
Class rensponsible for creating and showing all the appropriate windows to the screen.
| Constructor Summary | |
|---|---|
GUIOptionPane()
|
|
| Method Summary | |
|---|---|
static void |
bankruptWindow(java.lang.String name)
Method invoked whether a player has declared bunkrupcy. |
static void |
deptWindow(Monopoly game,
int dept)
Method invoked to handle the case in which a player has a dept. |
static void |
ExitingWindow()
Method invoked whether program is about to exit. |
static int |
getRounds()
Method invoked in the beginning of every new game to prompt user to enter the game rounds. |
static java.lang.String |
houseAction(java.lang.Object[] streets,
java.lang.String command)
Method invoked when user decides that he wants to buy(or sell) a house to one of his/her streets. |
static int |
jailWindow(boolean hasJailCard,
java.lang.String playername)
Method invoked when user has previously sent to jail. |
static java.lang.String |
mortageProperty(java.lang.Object[] properties,
java.lang.String command)
Method invoked when user decides that he wants to mortage one of his/her properties . |
static boolean |
NewGameWindow()
Method invoked when a new game is about to start. |
static void |
notEnoughMoney()
Method invoked when a player is trying to perform an action and he/she doesn't have enough money to do so. |
static int |
purchaseProperty(Monopoly game)
Method invoked whether user must decide whether he/she wants to buy a property cell. |
static void |
showIntro()
Method used to create and show the intro window in the screen, which contains information about the designers of the game. |
static void |
showRent(GUI grid,
java.lang.String str)
Method invoked when user is about to pay rent. |
static void |
WonWindow(java.lang.String playerName,
int fortune)
Method invoked whether a player has won a game (and thus all other player have lost). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GUIOptionPane()
| Method Detail |
|---|
public static void showIntro()
public static boolean NewGameWindow()
public static int getRounds()
public static int purchaseProperty(Monopoly game)
game - The current Monopoly game.
public static java.lang.String houseAction(java.lang.Object[] streets,
java.lang.String command)
streets - the streets of the active Player.command - the command user has choosen to perform.
public static java.lang.String mortageProperty(java.lang.Object[] properties,
java.lang.String command)
properties - the properties of the active Player.command - the command user has choosen to perform.
public static int jailWindow(boolean hasJailCard,
java.lang.String playername)
hasJailCard - true if and only if user has a get out of jail card, otherwise false.playername - the active player's name.
public static void deptWindow(Monopoly game,
int dept)
game - the current Monopoly game.dept - the dept the active player have to an other player or to the bank.
public static void showRent(GUI grid,
java.lang.String str)
grid - the current gui of the program.str - the string that is to be viewed in this JOptionPane.public static void notEnoughMoney()
public static void bankruptWindow(java.lang.String name)
name - The bankrupted player name.
public static void WonWindow(java.lang.String playerName,
int fortune)
playerName - the winning player's name.fortune - the winning player's money.public static void ExitingWindow()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||