Blackjack

com.amoebacode.blackjack.core
Interface IParticipant

All Superinterfaces:
IGameObject
All Known Subinterfaces:
IDealer, IPlayer
All Known Implementing Classes:
Participant

public interface IParticipant
extends IGameObject

IParticipant defines the standard API for a round participant, including access to the collection of hands.

Version:
0.9
Author:
Jason Gurney

Method Summary
 boolean allHandsBlackjack()
          Indicates whether all hands for this participant have blackjack.
 void clear()
          Removes each of this participant's hands from the table.
 IHand getFirstHand()
          Returns the first hand for this participant.
 int getNumberOfHands()
          Returns the number of hands being controlled by this participant.
 void setupFirstHand()
          Sets up the first hand for this participant (called at the beginning of the round) and notifies the GUI listeners.
 
Methods inherited from interface com.amoebacode.blackjack.core.IGameObject
addEventListener, getGame, getParent
 

Method Detail

clear

public void clear()
Removes each of this participant's hands from the table.

setupFirstHand

public void setupFirstHand()
Sets up the first hand for this participant (called at the beginning of the round) and notifies the GUI listeners.

getFirstHand

public IHand getFirstHand()
Returns the first hand for this participant.
Returns:
this participant's first IHand

allHandsBlackjack

public boolean allHandsBlackjack()
Indicates whether all hands for this participant have blackjack.
Returns:
true if all hands have blackjack.

getNumberOfHands

public int getNumberOfHands()
Returns the number of hands being controlled by this participant.
Returns:
the number of hands

Blackjack

Copyright © 2002 amoebacode.com.