|
|
|||||||||
PREV CLASS NEXT CLASS |
|
|||||||||
|
java.lang.Object
Table
public class Table
extends java.lang.Object
An encapsulation of a Table for a card game (that contains a Dealer object
and one or more Player objects)
|
|
Method Summary |
|
|
|
|
|
|
|
|
|
|
|
Methods inherited from class java.lang.Object |
|
public Table()
Default Constructor Constructs an
"empty" table (i.e., with no Dealer object and no Player objects)
public void addPlayer(Player player)
Add a Player to this Table
Parameters:
player
- The Player to add
public Dealer getDealer()
Get the Dealer that is working at
this Table
Returns:
The Dealer
public Player[] getPlayers()
Get all of the Player objects that
are playing at this Table
Returns:
The Player objects
public void removePlayer(Player player)
Remove a Player from this Table
Parameters:
player
- The Player to remove
public void setDealer(Dealer dealer)
Assign a Dealer to work this Table
Parameters:
dealer
- The Dealer
|
|
|||||||||
PREV CLASS NEXT CLASS |
|
|||||||||
|