Blackjack

com.amoebacode.blackjack.display
Class ParticipantDisplay

java.lang.Object
  |
  +--com.amoebacode.blackjack.display.DisplayElement
        |
        +--com.amoebacode.blackjack.display.ParticipantDisplay
Direct Known Subclasses:
DealerDisplay, PlayerDisplay

abstract class ParticipantDisplay
extends DisplayElement

ParticipantDisplay is the base class for dealer and player displays, managing the list of hand displays.

Version:
0.9
Author:
Jason Gurney

Field Summary
private  java.util.List handDisplay
          The list of hand displays managed by this participant display
 
Fields inherited from class com.amoebacode.blackjack.display.DisplayElement
parent
 
Constructor Summary
protected ParticipantDisplay(RoundDisplay round)
          Default protected constructor.
 
Method Summary
protected  void addHandDisplay(HandDisplay hand)
          Adds the specified hand display to this participant.
protected  HandDisplay getHandDisplayAt(int index)
          Returns the hand display at the specified index.
 
Methods inherited from class com.amoebacode.blackjack.display.DisplayElement
executeGameCommand, getDisplayManager, getGameDisplay, getParent, hasParent, playGameClip, queueAction, resumeQueue
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

handDisplay

private java.util.List handDisplay
The list of hand displays managed by this participant display
Constructor Detail

ParticipantDisplay

protected ParticipantDisplay(RoundDisplay round)
Default protected constructor.
Parameters:
round - the parent RoundDisplay
Method Detail

addHandDisplay

protected void addHandDisplay(HandDisplay hand)
Adds the specified hand display to this participant.
Parameters:
hand - the HandDisplay to add

getHandDisplayAt

protected HandDisplay getHandDisplayAt(int index)
Returns the hand display at the specified index.
Parameters:
index - the index of the hand to return
Returns:
the HandDisplay

Blackjack

Copyright © 2002 amoebacode.com.