com.amoebacode.blackjack.display
Class RoundDisplay
java.lang.Object
|
+--com.amoebacode.blackjack.display.DisplayElement
|
+--com.amoebacode.blackjack.display.RoundDisplay
- All Implemented Interfaces:
- BlackjackEventListener, java.util.EventListener, RoundEventListener
- class RoundDisplay
- extends DisplayElement
- implements RoundEventListener
RoundDisplay handles the round display objects, including the dealer and the player.
- Version:
- 0.9
- Author:
- Jason Gurney
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
playerDisplay
private PlayerDisplay playerDisplay
- The player display object
dealerHandDisplay
private DealerDisplay dealerHandDisplay
- The dealer display object
RoundDisplay
protected RoundDisplay(GameDisplay parent)
- Default protected constructor.
- Parameters:
parent - the GameDisplay parent
getPlayerDisplay
protected PlayerDisplay getPlayerDisplay()
- Returns the player display object for this round.
- Returns:
- the PlayerDisplay
getDealerDisplay
protected DealerDisplay getDealerDisplay()
- Returns the dealer display object for this round.
- Returns:
- the DealerDisplay
setPlayer
public void setPlayer(BlackjackEvent event)
- Description copied from interface:
RoundEventListener
- Sets the player in this round display object.
- Specified by:
setPlayer in interface RoundEventListener
- See Also:
RoundEventListener.setPlayer(BlackjackEvent)
setDealer
public void setDealer(BlackjackEvent event)
- Description copied from interface:
RoundEventListener
- Sets the dealer in this round display object.
- Specified by:
setDealer in interface RoundEventListener
- See Also:
RoundEventListener.setDealer(BlackjackEvent)
Copyright © 2002 amoebacode.com.