Package  

 Class 

Tree 

Deprecated 

Index 

Help 

 

 PREV CLASS   NEXT CLASS

FRAMES    NO FRAMES     All Classes

 

SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

 

size=2 width="100%" align=center>

Class Table

java.lang.Object
  extended byTable

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)


Constructor Summary

Table()
          Default Constructor Constructs an "empty" table (i.e., with no Dealer object and no Player objects)

 

 

Method Summary

 void

addPlayer(Player player)
          Add a Player to this Table

 Dealer

getDealer()
          Get the Dealer that is working at this Table

 Player[]

getPlayers()
          Get all of the Player objects that are playing at this Table

 void

removePlayer(Player player)
          Remove a Player from this Table

 void

setDealer(Dealer dealer)
          Assign a Dealer to work this Table

 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

Table

public Table()

Default Constructor Constructs an "empty" table (i.e., with no Dealer object and no Player objects)

Method Detail

addPlayer

public void addPlayer(Player player)

Add a Player to this Table

Parameters:

player - The Player to add


getDealer

public Dealer getDealer()

Get the Dealer that is working at this Table

Returns:

The Dealer


getPlayers

public Player[] getPlayers()

Get all of the Player objects that are playing at this Table

Returns:

The Player objects


removePlayer

public void removePlayer(Player player)

Remove a Player from this Table

Parameters:

player - The Player to remove


setDealer

public void setDealer(Dealer dealer)

Assign a Dealer to work this Table

Parameters:

dealer - The Dealer

size=2 width="100%" align=center>

 

Package  

 Class 

Tree 

Deprecated 

Index 

Help 

 

 PREV CLASS   NEXT CLASS

FRAMES    NO FRAMES     All Classes

 

SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

 

size=2 width="100%" align=center>