|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcommon.Game
public class Game
| Field Summary | |
|---|---|
static java.lang.String |
BLACKJACK
Specifies that the player wants to play Blackjack. |
static java.lang.String |
HEARTS
Specifies that the player wants to play Hearts. |
static java.lang.String |
SPADES
Specifies that the player wants to play Spades. |
| Constructor Summary | |
|---|---|
Game(java.lang.String g,
boolean n,
int p)
Initializes a new Game object that specifies which game the player wants to play and if he wants to create a new table or not. |
|
| Method Summary | |
|---|---|
java.lang.String |
getGame()
Returns the game that the player wants to play. |
boolean |
getNewTable()
Returns whether or not the player wants to create a new table. |
int |
getNumPlayers()
Returns the number of players the Player wants at his Table if he's creating a new Table; |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BLACKJACK
public static final java.lang.String HEARTS
public static final java.lang.String SPADES
| Constructor Detail |
|---|
public Game(java.lang.String g,
boolean n,
int p)
g - String Represents which game the player wants to play.n - boolean Whether or not the player is creating a new Table. (True=new table)p - int If the player is creating a new Table, specifies the amount of players
the table must have before the game begins.| Method Detail |
|---|
public java.lang.String getGame()
public boolean getNewTable()
public int getNumPlayers()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||